Reformat codebase with trailing commas in functions (#2006)
* style: 💄 Update trailing commas in API * style: 💄 Update trailing commas in core * style: 💄 Update trailing commas in rose * style: 💄 Update trailing commas in admin * style: 💄 Update trailing commas in desktop
This commit is contained in:
1 parent
cb3a9e3bdc
commit
bcf004b8a4
423 files changed
+1636
-1605
No files matched your search
@@ -67,7 +67,7 @@ module('Unit | Adapter | application', function (hooks) {
|
||||
'user',
|
||||
'1',
|
||||
mockSnapshot,
|
||||
'findRecord'
|
||||
'findRecord',
|
||||
);
|
||||
assert.strictEqual(findRecordURL, '/v1/users/1:my-custom-method');
|
||||
const findAllURL = adapter.buildURL('user', null, mockSnapshot, 'findAll');
|
||||
@@ -76,28 +76,28 @@ module('Unit | Adapter | application', function (hooks) {
|
||||
'user',
|
||||
'2',
|
||||
mockSnapshot,
|
||||
'findBelongsTo'
|
||||
'findBelongsTo',
|
||||
);
|
||||
assert.strictEqual(findBelongsToURL, '/v1/users/2:my-custom-method');
|
||||
const createRecordURL = adapter.buildURL(
|
||||
'user',
|
||||
null,
|
||||
mockSnapshot,
|
||||
'createRecord'
|
||||
'createRecord',
|
||||
);
|
||||
assert.strictEqual(createRecordURL, '/v1/users:my-custom-method');
|
||||
const updateRecordURL = adapter.buildURL(
|
||||
'user',
|
||||
'3',
|
||||
mockSnapshot,
|
||||
'updateRecord'
|
||||
'updateRecord',
|
||||
);
|
||||
assert.strictEqual(updateRecordURL, '/v1/users/3:my-custom-method');
|
||||
const deleteRecordURL = adapter.buildURL(
|
||||
'user',
|
||||
'4',
|
||||
mockSnapshot,
|
||||
'deleteRecord'
|
||||
'deleteRecord',
|
||||
);
|
||||
assert.strictEqual(deleteRecordURL, '/v1/users/4:my-custom-method');
|
||||
});
|
||||
@@ -109,7 +109,7 @@ module('Unit | Adapter | application', function (hooks) {
|
||||
assert.strictEqual(
|
||||
scope_id,
|
||||
'p_456',
|
||||
'Scoped resource URL was requested.'
|
||||
'Scoped resource URL was requested.',
|
||||
);
|
||||
return { items: [] };
|
||||
});
|
||||
@@ -154,7 +154,7 @@ module('Unit | Adapter | application', function (hooks) {
|
||||
store,
|
||||
{ modelName: 'user' },
|
||||
null,
|
||||
[]
|
||||
[],
|
||||
);
|
||||
assert.deepEqual(prenormalized, { items: [] });
|
||||
});
|
||||
@@ -209,7 +209,7 @@ module('Unit | Adapter | application', function (hooks) {
|
||||
assert.strictEqual(
|
||||
handledResponse.errors.length,
|
||||
2,
|
||||
'A base error plus one field error'
|
||||
'A base error plus one field error',
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -25,7 +25,7 @@ module('Unit | Adapter | host catalog', function (hooks) {
|
||||
'host-catalog',
|
||||
null,
|
||||
mockSnapshot,
|
||||
'createRecord'
|
||||
'createRecord',
|
||||
);
|
||||
assert.strictEqual(createRecordURL, '/v1/host-catalogs');
|
||||
});
|
||||
@@ -46,7 +46,7 @@ module('Unit | Adapter | host catalog', function (hooks) {
|
||||
'host-catalog',
|
||||
null,
|
||||
mockSnapshot,
|
||||
'createRecord'
|
||||
'createRecord',
|
||||
);
|
||||
assert.strictEqual(createRecordURL, '/v1/host-catalogs?plugin_name=aws');
|
||||
});
|
||||
|
||||
@@ -25,11 +25,11 @@ module('Unit | Adapter | session recording', function (hooks) {
|
||||
'sr_id',
|
||||
mockSnapshot,
|
||||
'findRecord',
|
||||
queryObject
|
||||
queryObject,
|
||||
);
|
||||
assert.strictEqual(
|
||||
createRecordURL,
|
||||
'/v1/session-recordings/sr_id:download?mime_type=mimeType'
|
||||
'/v1/session-recordings/sr_id:download?mime_type=mimeType',
|
||||
);
|
||||
});
|
||||
|
||||
@@ -40,7 +40,7 @@ module('Unit | Adapter | session recording', function (hooks) {
|
||||
'session-recording',
|
||||
'sr_id',
|
||||
{},
|
||||
'findRecord'
|
||||
'findRecord',
|
||||
);
|
||||
assert.strictEqual(createRecordURL, '/v1/session-recordings/sr_id');
|
||||
});
|
||||
|
||||
@@ -25,11 +25,11 @@ module('Unit | Adapter | storage bucket', function (hooks) {
|
||||
'storage-bucket',
|
||||
null,
|
||||
mockSnapshot,
|
||||
'createRecord'
|
||||
'createRecord',
|
||||
);
|
||||
assert.strictEqual(
|
||||
createRecordURL,
|
||||
'/v1/storage-buckets?plugin_name=aws_s3'
|
||||
'/v1/storage-buckets?plugin_name=aws_s3',
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user