diff options
Diffstat (limited to 'packages/astro/test/custom-404.test.js')
-rw-r--r-- | packages/astro/test/custom-404.test.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/astro/test/custom-404.test.js b/packages/astro/test/custom-404.test.js index a3294d9b1..c744f124c 100644 --- a/packages/astro/test/custom-404.test.js +++ b/packages/astro/test/custom-404.test.js @@ -32,7 +32,10 @@ describe('Custom 404', () => { }); it('renders 404 for /a', async () => { - const html = await fixture.fetch('/a').then((res) => res.text()); + const res = await fixture.fetch('/a'); + expect(res.status).to.equal(404); + + const html = await res.text(); $ = cheerio.load(html); expect($('h1').text()).to.equal('Page not found'); |