We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mirage
@crates-io/msw
1 parent c773e65 commit a4b6959Copy full SHA for a4b6959
tests/acceptance/logout-test.js
@@ -7,11 +7,11 @@ import { setupWindowMock } from 'ember-window-mock/test-support';
7
import { setupApplicationTest } from 'crates-io/tests/helpers';
8
9
module('Acceptance | Logout', function (hooks) {
10
- setupApplicationTest(hooks);
+ setupApplicationTest(hooks, { msw: true });
11
setupWindowMock(hooks);
12
13
test('successful logout', async function (assert) {
14
- let user = this.server.create('user', { name: 'John Doe' });
+ let user = this.db.user.create({ name: 'John Doe' });
15
this.authenticateAs(user);
16
17
await visit('/crates');
0 commit comments