From 81f587bafca0bb322e15ffd283454645606e4781 Mon Sep 17 00:00:00 2001 From: Spicer Matthews Date: Mon, 8 Jan 2024 20:36:00 -0800 Subject: [PATCH] Fixed broken unit tests --- src/pages/__tests__/privacy.test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/__tests__/privacy.test.js b/src/pages/__tests__/privacy.test.js index 345bb098..398b08ea 100644 --- a/src/pages/__tests__/privacy.test.js +++ b/src/pages/__tests__/privacy.test.js @@ -13,26 +13,26 @@ const getMockProps = () => ({ describe('privacy policy page', () => { it('renders without error', () => { - const PrivacyPage = require('../privacy-policy').default + const PrivacyPage = require('../docs/privacy-policy').default shallow() }) it('sets the page title using Helmet', () => { - const PrivacyPage = require('../privacy-policy').default + const PrivacyPage = require('../docs/privacy-policy').default const wrapper = shallow() const elem = wrapper.find(Helmet) expect(elem.prop('title')).toBe('Privacy Policy') }) it('sets the open graph title', () => { - const PrivacyPage = require('../privacy-policy').default + const PrivacyPage = require('../docs/privacy-policy').default const wrapper = shallow() const elem = wrapper.find('meta[property="og:title"]') expect(elem.prop('content')).toBe('Privacy Policy - Tab for a Cause') }) it('sets the open graph description', () => { - const PrivacyPage = require('../privacy-policy').default + const PrivacyPage = require('../docs/privacy-policy').default const wrapper = shallow() const elem = wrapper.find('meta[property="og:description"]') expect(elem.prop('content')).toBe( @@ -41,7 +41,7 @@ describe('privacy policy page', () => { }) it('renders the Layout component with "brand=all"', () => { - const PrivacyPage = require('../privacy-policy').default + const PrivacyPage = require('../docs/privacy-policy').default const wrapper = shallow() expect(wrapper.find(Layout).prop('brand')).toEqual('all') })