fix: use forumLocation everywhere (#39405)

* fix: use forumLocation everywhere
This commit is contained in:
Oliver Eyton-Williams
2020-08-14 11:56:14 +02:00
committed by GitHub
parent 42686db303
commit 5409e1e62e
4 changed files with 9 additions and 9 deletions

View File

@ -5,6 +5,8 @@ import TestRenderer from 'react-test-renderer';
import { UniversalNav } from './components/UniversalNav';
import NavLinks from './components/NavLinks';
import { forumLocation } from '../../../config/env.json';
describe('<UniversalNav />', () => {
it('renders to the DOM', () => {
const shallow = new ShallowRenderer();
@ -23,7 +25,7 @@ describe('<NavLinks />', () => {
return acc;
}, []);
const expectedLinks = ['/learn', '/news', 'https://forum.freecodecamp.org'];
const expectedLinks = ['/learn', '/news', forumLocation];
it('renders to the DOM', () => {
expect(root).toBeTruthy();