Skip to content

Commit

Permalink
Fix incorrect netlify redirect test
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Oct 23, 2023
1 parent 42e1c6b commit e18e16f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/netlify/test/functions/redirects.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ describe('SSG - Redirects', () => {
});

it('Does not create .html files', async () => {
let hasErrored = false;
try {
await fixture.readFile('/other/index.html');
expect(false).to.equal(true, 'this file should not exist');
} catch {
expect(true).to.equal(true);
hasErrored = true;
}
expect(hasErrored).to.equal(true, 'this file should not exist');
});
});

0 comments on commit e18e16f

Please sign in to comment.