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:
Zhihe Li authored and GitHub committed 2023-11-22 14:07:41 -05:00
1 parent cb3a9e3bdc
commit bcf004b8a4
423 files changed
+1636 -1605

No files matched your search

@@ -40,7 +40,7 @@ module('Unit | Model | auth method', function (hooks) {
version: 1,
});
return { id: '123abc' };
}
},
);
store.push({
data: {
+5 -5
View File
@@ -27,12 +27,12 @@ module('Unit | Model | group', function (hooks) {
assert.strictEqual(
group.member_ids.length,
2,
'Group has two entires in member_ids'
'Group has two entires in member_ids',
);
assert.strictEqual(
group.members.length,
0,
'Group has no resolved members because they are not loaded yet'
'Group has no resolved members because they are not loaded yet',
);
store.push({
data: {
@@ -53,12 +53,12 @@ module('Unit | Model | group', function (hooks) {
assert.strictEqual(
group.member_ids.length,
2,
'Group has two entires in member_ids'
'Group has two entires in member_ids',
);
assert.strictEqual(
group.members.length,
2,
'Group has two resolved members'
'Group has two resolved members',
);
});
@@ -168,7 +168,7 @@ module('Unit | Model | group', function (hooks) {
assert.strictEqual(
group.member_ids.length,
0,
'Group has empty member_ids by default'
'Group has empty member_ids by default',
);
});
});
+2 -2
View File
@@ -94,7 +94,7 @@ module('Unit | Model | role', function (hooks) {
version: 1,
});
return { id: '123abc' };
}
},
);
const store = this.owner.lookup('service:store');
store.push({
@@ -132,7 +132,7 @@ module('Unit | Model | role', function (hooks) {
version: 1,
});
return { id: '123abc' };
}
},
);
const store = this.owner.lookup('service:store');
store.push({
+5 -5
View File
@@ -30,27 +30,27 @@ module('Unit | Model | scope', function (hooks) {
assert.strictEqual(
await scopes.objectAt(1).get('scope.scope_id'),
'global',
'Org 1 parent scope is global'
'Org 1 parent scope is global',
);
assert.strictEqual(
await scopes.objectAt(2).get('scope.scope_id'),
'global',
'Org 2 parent scope is global'
'Org 2 parent scope is global',
);
assert.strictEqual(
await scopes.objectAt(3).get('scope.scope_id'),
'o_1',
'Project 1 parent scope is org 1'
'Project 1 parent scope is org 1',
);
assert.strictEqual(
await scopes.objectAt(4).get('scope.scope_id'),
'o_1',
'Project 2 parent scope is org 1'
'Project 2 parent scope is org 1',
);
assert.strictEqual(
await scopes.objectAt(5).get('scope.scope_id'),
'o_2',
'Project 3 parent scope is org 2'
'Project 3 parent scope is org 2',
);
});
@@ -110,7 +110,7 @@ module('Unit | Model | storage bucket', function (hooks) {
assert.strictEqual(modelPlugin.type, 'plugin');
assert.strictEqual(
modelPlugin.plugin.name,
TYPE_STORAGE_BUCKET_PLUGIN_AWS_S3
TYPE_STORAGE_BUCKET_PLUGIN_AWS_S3,
);
});
});
+17 -17
View File
@@ -31,12 +31,12 @@ module('Unit | Model | target', function (hooks) {
assert.strictEqual(
target.host_sources.length,
2,
'Target has two entires in host_sources'
'Target has two entires in host_sources',
);
assert.strictEqual(
target.hostSets.length,
0,
'Target has no resolved hostSets because they are not loaded yet'
'Target has no resolved hostSets because they are not loaded yet',
);
store.push({
data: {
@@ -55,16 +55,16 @@ module('Unit | Model | target', function (hooks) {
assert.strictEqual(
target.host_sources.length,
2,
'Target has two entires in host_sources'
'Target has two entires in host_sources',
);
assert.strictEqual(
target.hostSets.length,
2,
'Target has two resolved hostSets'
'Target has two resolved hostSets',
);
assert.notOk(
target.hostSets[0].hostCatalog,
'Host catalog was not resolved because it is not loaded yet'
'Host catalog was not resolved because it is not loaded yet',
);
store.push({
data: {
@@ -89,7 +89,7 @@ module('Unit | Model | target', function (hooks) {
version: 1,
});
return { id: '123abc' };
}
},
);
const store = this.owner.lookup('service:store');
store.push({
@@ -126,7 +126,7 @@ module('Unit | Model | target', function (hooks) {
version: 1,
});
return { id: '123abc' };
}
},
);
const store = this.owner.lookup('service:store');
store.push({
@@ -163,7 +163,7 @@ module('Unit | Model | target', function (hooks) {
version: 1,
});
return { id: '123abc' };
}
},
);
const store = this.owner.lookup('service:store');
store.push({
@@ -224,12 +224,12 @@ module('Unit | Model | target', function (hooks) {
assert.strictEqual(
store.peekAll('session').length,
3,
'There are 3 sessions loaded in the store'
'There are 3 sessions loaded in the store',
);
assert.strictEqual(
target.sessions.length,
2,
'Target has two associated sessions loaded in the store'
'Target has two associated sessions loaded in the store',
);
});
@@ -249,12 +249,12 @@ module('Unit | Model | target', function (hooks) {
assert.strictEqual(
target.brokered_credential_source_ids.length,
2,
'Target has two entires in brokered_credential_source_ids'
'Target has two entires in brokered_credential_source_ids',
);
assert.strictEqual(
target.brokeredCredentialSources.length,
0,
'Target has no resolved credentialSources, because they are not yet loaded'
'Target has no resolved credentialSources, because they are not yet loaded',
);
store.push({
data: {
@@ -274,12 +274,12 @@ module('Unit | Model | target', function (hooks) {
assert.strictEqual(
target.brokered_credential_source_ids.length,
2,
'Target has two entires in brokered_credential_source_ids'
'Target has two entires in brokered_credential_source_ids',
);
assert.strictEqual(
target.brokeredCredentialSources.length,
2,
'Target has two resolved credentialSources'
'Target has two resolved credentialSources',
);
});
@@ -294,7 +294,7 @@ module('Unit | Model | target', function (hooks) {
version: 1,
});
return { id: '123abc' };
}
},
);
const store = this.owner.lookup('service:store');
store.push({
@@ -328,7 +328,7 @@ module('Unit | Model | target', function (hooks) {
version: 1,
});
return { id: '123abc' };
}
},
);
const store = this.owner.lookup('service:store');
store.push({
@@ -362,7 +362,7 @@ module('Unit | Model | target', function (hooks) {
version: 1,
});
return { id: '123abc' };
}
},
);
const store = this.owner.lookup('service:store');
store.push({
+1 -1
View File
@@ -117,7 +117,7 @@ module('Unit | Model | user', function (hooks) {
assert.strictEqual(
user.account_ids.length,
0,
'User has empty account_ids by default'
'User has empty account_ids by default',
);
});