Fix netlify test ordering

This commit is contained in:
Matthew Phillips 2023-05-30 17:49:22 -04:00
parent eb7617d719
commit d7d0b22e96

View file

@ -27,14 +27,14 @@ describe('SSG - Redirects', () => {
it('Creates a redirects file', async () => { it('Creates a redirects file', async () => {
let redirects = await fixture.readFile('/_redirects'); let redirects = await fixture.readFile('/_redirects');
console.log(redirects)
let parts = redirects.split(/\s+/); let parts = redirects.split(/\s+/);
expect(parts).to.deep.equal([ expect(parts).to.deep.equal([
'/nope', '/', '301',
'/other', '/', '301',
'/two', '/', '302', '/two', '/', '302',
'/team/articles/*', '/team/articles/*/index.html', '200', '/other', '/', '301',
'/nope', '/', '301',
'/blog/*', '/team/articles/*/index.html', '301', '/blog/*', '/team/articles/*/index.html', '301',
'/team/articles/*', '/team/articles/*/index.html', '200',
]); ]);
}); });
}); });