Skip to content

Commit a323f34

Browse files
committed
tests/bugs/4506: Migrate from mirage to @crates-io/msw
1 parent bdd2861 commit a323f34

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/bugs/4506-test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ import { setupApplicationTest } from 'crates-io/tests/helpers';
66
import { visit } from '../helpers/visit-ignoring-abort';
77

88
module('Bug #4506', function (hooks) {
9-
setupApplicationTest(hooks);
9+
setupApplicationTest(hooks, { msw: true });
1010

1111
function prepare(context) {
12-
let { server } = context;
12+
let { db } = context;
1313

14-
server.create('keyword', { keyword: 'no-std' });
14+
let noStd = db.keyword.create({ keyword: 'no-std' });
1515

16-
let foo = server.create('crate', { name: 'foo', keywordIds: ['no-std'] });
17-
server.create('version', { crate: foo });
16+
let foo = db.crate.create({ name: 'foo', keywords: [noStd] });
17+
db.version.create({ crate: foo });
1818

19-
let bar = server.create('crate', { name: 'bar', keywordIds: ['no-std'] });
20-
server.create('version', { crate: bar });
19+
let bar = db.crate.create({ name: 'bar', keywords: [noStd] });
20+
db.version.create({ crate: bar });
2121
}
2222

2323
test('is fixed', async function (assert) {

0 commit comments

Comments
 (0)