Skip to content

Commit 4451e65

Browse files
committed
make lint happy, begrudgingly as its an assinine rule
1 parent 24cf8ff commit 4451e65

File tree

2 files changed

+8
-8
lines changed
  • tests/fixtures

2 files changed

+8
-8
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ const Store = useLegacyStore({
77
cache: JSONAPICache,
88
handlers: [
99
{
10-
async request() {
11-
return {
10+
request() {
11+
return Promise.resolve({
1212
data: {
1313
type: 'person',
1414
id: '1',
1515
attributes: { name: 'Luke Skywalker' },
1616
},
17-
};
17+
});
1818
},
1919
},
2020
],

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ const Store = useLegacyStore({
88
handlers: [
99
{
1010
request<T>(): Promise<T> {
11-
return {
11+
return Promise.resolve({
1212
data: {
1313
type: 'person',
1414
id: '1',
15-
attributes: { name: 'Luke Skywalker' },
15+
attributes: { name: 'Luke Skywalker' }
1616
},
17-
} as T;
18-
},
19-
},
17+
} as T);
18+
}
19+
}
2020
],
2121
schemas: [
2222
// -- your schemas here

0 commit comments

Comments
 (0)