Skip to content

Commit

Permalink
Changed privacy-policy to privacypolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
Spicer Matthews committed Jan 9, 2024
1 parent b0efb6d commit 7cd645f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions gatsby-node.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ exports.createPages = async ({ actions, graphql }) => {

createRedirect({
fromPath: '/privacy',
toPath: '/privacy-policy',
toPath: '/privacypolicy',
isPermanent: true,
redirectInBrowser: true,
})

// Create landing page variants for referrers.
Expand Down
2 changes: 1 addition & 1 deletion src/components/__tests__/__snapshots__/Footer.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ exports[`Footer matches expected snapshot 1`] = `
"margin": 20,
}
}
to="/privacy-policy/"
to="/privacypolicy/"
>
Privacy
</Link>
Expand Down
10 changes: 5 additions & 5 deletions src/pages/__tests__/privacy.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@ const getMockProps = () => ({

describe('privacy policy page', () => {
it('renders without error', () => {
const PrivacyPage = require('../privacy-policy').default
const PrivacyPage = require('../privacypolicy').default
shallow(<PrivacyPage {...getMockProps()} />)
})

it('sets the page title using Helmet', () => {
const PrivacyPage = require('../privacy-policy').default
const PrivacyPage = require('../privacypolicy').default
const wrapper = shallow(<PrivacyPage {...getMockProps()} />)
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('../privacypolicy').default
const wrapper = shallow(<PrivacyPage {...getMockProps()} />)
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('../privacypolicy').default
const wrapper = shallow(<PrivacyPage {...getMockProps()} />)
const elem = wrapper.find('meta[property="og:description"]')
expect(elem.prop('content')).toBe(
Expand All @@ -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('../privacypolicy').default
const wrapper = shallow(<PrivacyPage {...getMockProps()} />)
expect(wrapper.find(Layout).prop('brand')).toEqual('all')
})
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/utils/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const helpURL = '/help/'
export const contactUsURL = '/contact/'
export const financialsURL = '/financials/'
export const termsURL = '/terms/'
export const privacyPolicyURL = '/privacy-policy/'
export const privacyPolicyURL = '/privacypolicy/'
export const teamURL = '/team/'
export const jobsURL = '/jobs/'
export const adblockerWhitelistingURL = '/adblockers/'
Expand Down

0 comments on commit 7cd645f

Please sign in to comment.