Refactor upgrade ember 4 (#1501)

Upgrade Ember 4

Co-authored-by: Randall Morey <randall@randallmorey.com>
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
This commit is contained in:
authored and GitHub committed 2023-01-09 08:48:49 -08:00
1 parent ed91b26861
commit c21f011bb2
119 files changed
+1482 -496

No files matched your search

+4 -2
View File
@@ -120,10 +120,11 @@ module('Unit | Model | base', function (hooks) {
return {};
});
await model.save();
this.server.delete('/v1/users', () => {
this.server.delete('/v1/users/u_123', () => {
assert.ok(true, 'Correctly scoped delete record URL was requested.');
return {};
});
model.id = 'u_123';
await model.destroyRecord();
});
@@ -143,10 +144,11 @@ module('Unit | Model | base', function (hooks) {
return {};
});
await model.save({ adapterOptions: { scopeID: customScopeID } });
this.server.delete('/v1/users', () => {
this.server.delete('/v1/users/u_123', () => {
assert.ok(true, 'Correctly scoped delete record URL was requested.');
return {};
});
model.id = 'u_123';
await model.destroyRecord({ adapterOptions: { scopeID: customScopeID } });
});