diff --git a/tests/fastboot/not-found-test.js b/tests/fastboot/not-found-test.js index 853b61659..4f98cad4c 100644 --- a/tests/fastboot/not-found-test.js +++ b/tests/fastboot/not-found-test.js @@ -5,10 +5,20 @@ module('FastBoot | not-found', function (hooks) { setup(hooks); test('it returns the correct status code', async function (assert) { - const visitHome = await visit('/'); - assert.equal(visitHome.statusCode, 200); + let { statusCode } = await visit('/'); - const visitFoo = await visit('/foo'); - assert.equal(visitFoo.statusCode, 404); + assert.strictEqual( + statusCode, + 200, + 'The user sees 200 status code when they visit a URL that exists.' + ); + + ({ statusCode } = await visit('/foo-bar-baz')); + + assert.strictEqual( + statusCode, + 404, + 'The user sees 404 status code when they visit a URL that does not exist.' + ); }); });