fix(redirects): update app paths and other misc. (#36635)

This commit is contained in:
mrugesh
2019-08-19 19:17:27 +05:30
committed by GitHub
parent 9f40714d0a
commit 985daf5e5a
3 changed files with 41 additions and 20 deletions

View File

@@ -18,7 +18,7 @@ describe('createRedirects', () => {
});
it('replaces instances of `#{{...}}` with the locations provided', () => {
expect.assertions(6);
expect.assertions(5);
const apiPlaceholderRE = /#\{\{API\}\}/;
const newsPlaceholderRE = /#\{\{NEWS\}\}/;
@@ -35,9 +35,6 @@ describe('createRedirects', () => {
const { api, forum } = testLocations;
expect(redirects.includes(`${api}/internal/:splat`)).toBe(true);
expect(
redirects.includes(`${forum}/t/free-code-camp-privacy-policy/19545 301`)
).toBe(true);
expect(redirects.includes(`${forum}`)).toBe(true);
});