Skip to content

Commit b548a3c

Browse files
committed
Address linting issues
1 parent c88c9c2 commit b548a3c

4 files changed

Lines changed: 24 additions & 11 deletions

File tree

addon/src/mocks/request-manager-msw.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ export default class RequestManagerMSW extends RequestManager {
4949
url,
5050
async ({ request, params }) => {
5151
await delay(this._settings.delay);
52-
return await wrapper.handleRequest({ request: request.clone(), params });
52+
return await wrapper.handleRequest({
53+
request: request.clone(),
54+
params,
55+
});
5356
},
5457
);
5558
this.worker.use(mswHandler);

test-app/tests/unit/factory-guy-test.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,10 +1066,18 @@ module('FactoryGuy', function (hooks) {
10661066
const originalAdapterFor = store.adapterFor;
10671067

10681068
FactoryGuy.cacheOnlyMode();
1069-
assert.notStrictEqual(store.adapterFor, originalAdapterFor, 'adapterFor is patched');
1069+
assert.notStrictEqual(
1070+
store.adapterFor,
1071+
originalAdapterFor,
1072+
'adapterFor is patched',
1073+
);
10701074

10711075
FactoryGuy.reset();
1072-
assert.strictEqual(store.adapterFor, originalAdapterFor, 'adapterFor is restored after reset');
1076+
assert.strictEqual(
1077+
store.adapterFor,
1078+
originalAdapterFor,
1079+
'adapterFor is restored after reset',
1080+
);
10731081
});
10741082
});
10751083

@@ -1088,7 +1096,8 @@ module('FactoryGuy', function (hooks) {
10881096
test('throws when name not found and assertItExists is true', function (assert) {
10891097
const FactoryGuyClass = FactoryGuy.constructor;
10901098
assert.throws(
1091-
() => FactoryGuyClass.lookupDefinitionForFixtureName('NoSuchFactory', true),
1099+
() =>
1100+
FactoryGuyClass.lookupDefinitionForFixtureName('NoSuchFactory', true),
10921101
/Can't find that factory named \[ NoSuchFactory \]/,
10931102
);
10941103
});

test-app/tests/unit/mocks/mock-links-test.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@ module('MockLinks', function (hooks) {
2020
});
2121

2222
test('with only model parameter throws the guard assertion message', function (assert) {
23-
assert.throws(
24-
function () {
25-
mockLinks(make('user'));
26-
},
27-
/mockLinks requires at least model and relationshipKey/,
28-
);
23+
assert.throws(function () {
24+
mockLinks(make('user'));
25+
}, /mockLinks requires at least model and relationshipKey/);
2926
});
3027

3128
test('getUrl and status for belongsTo links', function (assert) {

test-app/tests/unit/sequence-test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ module('Sequence', function () {
2727
return n;
2828
});
2929
seq.next();
30-
assert.notStrictEqual(capturedThis, seq, 'fn should not receive Sequence as this');
30+
assert.notStrictEqual(
31+
capturedThis,
32+
seq,
33+
'fn should not receive Sequence as this',
34+
);
3135
});
3236

3337
test('reset restarts index at 1', function (assert) {

0 commit comments

Comments
 (0)