refactor: 💡 upgrade addons/api to Ember 3.24

This commit is contained in:
Randall Morey committed 2021-03-04 15:47:38 -05:00
1 parent 050c2577d0
commit fbf39b3bba
92 files changed
+1348 -621

No files matched your search

@@ -66,7 +66,7 @@ module('Unit | Serializer | application', function (hooks) {
const serializedRecord = serializer.serialize(snapshot);
assert.deepEqual(serializedRecord, {
name: 'User',
description: 'Description'
description: 'Description',
});
});
@@ -172,7 +172,7 @@ module('Unit | Serializer | application', function (hooks) {
attributes: {
name: 'User 1',
account_ids: [],
scope: { scope_id: 'o_123' }
scope: { scope_id: 'o_123' },
},
relationships: {},
},
@@ -1,18 +1,18 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Serializer | host', function(hooks) {
module('Unit | Serializer | host', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function(assert) {
test('it exists', function (assert) {
let store = this.owner.lookup('service:store');
let serializer = store.serializerFor('host');
assert.ok(serializer);
});
test('it serializes records', function(assert) {
test('it serializes records', function (assert) {
let store = this.owner.lookup('service:store');
let record = store.createRecord('host', {});
@@ -21,7 +21,7 @@ module('Unit | Serializer | role', function (hooks) {
name: 'User',
description: 'Description',
version: 1,
grant_scope_id: null
grant_scope_id: null,
});
});
@@ -1,11 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Serializer | session', function(hooks) {
module('Unit | Serializer | session', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function(assert) {
test('it exists', function (assert) {
let store = this.owner.lookup('service:store');
let serializer = store.serializerFor('session');
@@ -20,7 +20,7 @@ module('Unit | Serializer | target', function (hooks) {
type: 'org',
},
version: 1,
type: 'tcp'
type: 'tcp',
});
const snapshot = record._createSnapshot();
snapshot.adapterOptions = {};
@@ -55,11 +55,7 @@ module('Unit | Serializer | user', function (hooks) {
name: 'user 1',
scope: { id: 'o_123' },
};
const normalized = serializer.normalizeSingleResponse(
store,
user,
payload
);
const normalized = serializer.normalizeSingleResponse(store, user, payload);
assert.deepEqual(normalized, {
included: [],
data: {