Skip to content

Commit e63ae5d

Browse files
committed
Fix test
1 parent f804ffc commit e63ae5d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/astro/test/units/routing/trailing-slash.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,8 @@ describe('trailingSlash', () => {
111111
url: '/dot.json/',
112112
});
113113
container.handle(req, res);
114-
const html = await text();
115-
assert.equal(html.includes(`<span class="statusMessage">Not found</span>`), true);
116-
assert.equal(res.statusCode, 404);
114+
const json = await text();
115+
assert.equal(json, '{"success":true}');
117116
});
118117

119118
it('should also match the API route when request lacks a trailing slash, with a file extension', async () => {

0 commit comments

Comments
 (0)