chore: 🤖 fix deprecation warning for firstobject usage (#1844)

This commit is contained in:
Dharini Jeeva authored and GitHub committed 2023-08-15 13:20:08 -07:00
1 parent 40673c180c
commit bf343c0b8c
10 files changed
+11 -14

No files matched your search

+1 -4
View File
@@ -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',