fix(redirects): update app paths and other misc. (#36635)
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user