Skip to content

Commit d74d8d9

Browse files
committed
fix invalid test
1 parent f27c627 commit d74d8d9

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

tests/acceptance/convert-legacy-url-to-current-test.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,16 @@ module('Acceptance | convert legacy url to current', function (hooks) {
5050
assert.equal(currentURL(), '/ember/release');
5151
});
5252

53-
test('should convert unknown legacy data url to 404', async function (assert) {
53+
test('should display 404 when navigating to unknown legacy data url', async function (assert) {
5454
await visit('/data/modules/ember-random.html');
55-
assert.equal(currentURL(), '/404');
55+
assert.equal(currentURL(), '/data/modules/ember-random.html');
56+
assert
57+
.dom('.whoops__title')
58+
.hasText(`Ack! 404 friend, you're in the wrong place`);
5659
});
5760

5861
test('should convert unknown legacy classes url to landing page', async function (assert) {
5962
await visit('classes/Ember.View.html');
6063
assert.equal(currentURL(), '/ember/release');
6164
});
62-
63-
test('should convert unknown legacy data classes to 404', async function (assert) {
64-
await visit('data/classes/DS.Whatever.html');
65-
assert.equal(currentURL(), '/404');
66-
});
6765
});

0 commit comments

Comments
 (0)