Skip to content

Commit 87a8963

Browse files
committed
TEMP
1 parent 07f7652 commit 87a8963

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

tests/acceptance/api-token-test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,32 @@ import { setupApplicationTest } from 'crates-io/tests/helpers';
99
import { visit } from '../helpers/visit-ignoring-abort';
1010

1111
module('Acceptance | api-tokens', function (hooks) {
12-
setupApplicationTest(hooks);
12+
setupApplicationTest(hooks, { msw: true });
1313

1414
function prepare(context) {
15-
let user = context.server.create('user', {
15+
let user = context.db.user.create({
1616
login: 'johnnydee',
1717
name: 'John Doe',
1818
1919
avatar: 'https://avatars2.githubusercontent.com/u/1234567?v=4',
2020
});
2121

22-
context.server.create('api-token', {
22+
context.db.apiToken.create({
2323
user,
2424
name: 'foo',
2525
createdAt: '2017-08-01T12:34:56',
2626
lastUsedAt: '2017-11-02T01:45:14',
2727
});
2828

29-
context.server.create('api-token', {
29+
context.db.apiToken.create({
3030
user,
3131
name: 'BAR',
3232
createdAt: '2017-11-19T17:59:22',
3333
lastUsedAt: null,
3434
expiredAt: '2017-12-19T17:59:22',
3535
});
3636

37-
context.server.create('api-token', {
37+
context.db.apiToken.create({
3838
user,
3939
name: 'recently expired',
4040
createdAt: '2017-08-01T12:34:56',

tests/acceptance/front-page-test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ import { summary } from '../../mirage/route-handlers/summary';
1313
import axeConfig from '../axe-config';
1414

1515
module('Acceptance | front page', function (hooks) {
16-
setupApplicationTest(hooks);
16+
setupApplicationTest(hooks, { msw: true });
1717

1818
test('visiting /', async function (assert) {
1919
this.owner.lookup('service:intl').locale = 'en';
2020

21-
this.server.loadFixtures();
21+
this.db.user.create({ name: 'SimonSays' });
22+
// this.server.loadFixtures();
2223

2324
await visit('/');
2425

tests/acceptance/readme-rendering-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ graph TD;
9292
`;
9393

9494
module('Acceptance | README rendering', function (hooks) {
95-
setupApplicationTest(hooks);
95+
setupApplicationTest(hooks, { msw: true });
9696

9797
test('it works', async function (assert) {
9898
let crate = this.server.create('crate', { name: 'serde' });

0 commit comments

Comments
 (0)