fix: use forumLocation everywhere (#39405)
* fix: use forumLocation everywhere
This commit is contained in:
committed by
GitHub
parent
42686db303
commit
5409e1e62e
@ -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();
|
||||
|
Reference in New Issue
Block a user