Skip to content

Commit 8d6da1c

Browse files
committed
Format test data
1 parent 7bf7e39 commit 8d6da1c

File tree

6 files changed

+22
-26
lines changed

6 files changed

+22
-26
lines changed

tests/fixtures/warpdrive-js/app/routes/application.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export default class ApplicationRoute extends Route {
77
model() {
88
return {
99
person: this.store.request({
10-
url: 'https://swapi.dev/api/people/1'
11-
})
10+
url: 'https://swapi.dev/api/people/1',
11+
}),
1212
};
1313
}
1414
}

tests/fixtures/warpdrive-js/app/services/store.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,18 @@ const Store = useLegacyStore({
1212
data: {
1313
type: 'person',
1414
id: '1',
15-
attributes: { name: 'Luke Skywalker' }
16-
}
17-
}
18-
}
19-
}
15+
attributes: { name: 'Luke Skywalker' },
16+
},
17+
};
18+
},
19+
},
2020
],
2121
schemas: [
2222
// -- your schemas here
2323
withDefaults({
2424
type: 'person',
25-
fields: [
26-
{ kind: 'field', name: 'name' }
27-
],
28-
})
25+
fields: [{ kind: 'field', name: 'name' }],
26+
}),
2927
],
3028
});
3129

tests/fixtures/warpdrive-js/tests/application/index-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { module, test } from 'qunit';
22
import { setupApplicationTest } from 'ember-qunit';
33
import { visit } from '@ember/test-helpers';
44

5-
module('Application | index', function(hooks) {
5+
module('Application | index', function (hooks) {
66
setupApplicationTest(hooks);
77

8-
test('visiting / shows welcome message', async function(assert) {
8+
test('visiting / shows welcome message', async function (assert) {
99
await visit('/');
1010

1111
assert.dom('h1').hasText('Welcome Luke Skywalker');

tests/fixtures/warpdrive-ts/app/routes/application.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ export default class ApplicationRoute extends Route {
1818
return {
1919
person: this.store.request(
2020
withReactiveResponse<Person>({
21-
url: 'https://swapi.dev/api/people/1'
22-
})
23-
)
21+
url: 'https://swapi.dev/api/people/1',
22+
}),
23+
),
2424
};
2525
}
2626
}

tests/fixtures/warpdrive-ts/app/services/store.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,18 @@ const Store = useLegacyStore({
1212
data: {
1313
type: 'person',
1414
id: '1',
15-
attributes: { name: 'Luke Skywalker' }
16-
}
15+
attributes: { name: 'Luke Skywalker' },
16+
},
1717
} as T;
18-
}
19-
}
18+
},
19+
},
2020
],
2121
schemas: [
2222
// -- your schemas here
2323
withDefaults({
2424
type: 'person',
25-
fields: [
26-
{ kind: 'field', name: 'name' }
27-
],
28-
})
25+
fields: [{ kind: 'field', name: 'name' }],
26+
}),
2927
],
3028
});
3129

tests/fixtures/warpdrive-ts/tests/application/index-test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { module, test } from 'qunit';
22
import { setupApplicationTest } from 'ember-qunit';
33
import { visit } from '@ember/test-helpers';
44

5-
module('Application | index', function(hooks) {
5+
module('Application | index', function (hooks) {
66
setupApplicationTest(hooks);
77

8-
test('visiting / shows welcome message', async function(assert) {
8+
test('visiting / shows welcome message', async function (assert) {
99
await visit('/');
1010

1111
assert.dom('h1').hasText('Welcome Luke Skywalker');

0 commit comments

Comments
 (0)