chore: 🤖 fix deprecation warning for firstobject usage (#1844)
This commit is contained in:
1 parent
40673c180c
commit
bf343c0b8c
10 files changed
+11
-14
No files matched your search
@@ -26,10 +26,7 @@ module('Unit | Model | scope', function (hooks) {
|
||||
}));
|
||||
const scopes = await store.findAll('scope');
|
||||
// check integrity of scope relationships
|
||||
assert.notOk(
|
||||
await scopes.firstObject.get('scope'),
|
||||
'Global scope has no parent'
|
||||
);
|
||||
assert.notOk(await scopes[0].get('scope'), 'Global scope has no parent');
|
||||
assert.strictEqual(
|
||||
await scopes.objectAt(1).get('scope.scope_id'),
|
||||
'global',
|
||||
|
||||
Reference in new issue
Block a user