From 3b37c0f92a4517fe500e31149f6dd84ef572ea89 Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Wed, 15 Jul 2020 14:29:05 -0400 Subject: [PATCH] chore: update test to account for scope --- addons/api/tests/unit/serializers/application-test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/api/tests/unit/serializers/application-test.js b/addons/api/tests/unit/serializers/application-test.js index a9f999501..b93171257 100644 --- a/addons/api/tests/unit/serializers/application-test.js +++ b/addons/api/tests/unit/serializers/application-test.js @@ -14,14 +14,17 @@ module('Unit | Serializer | application', function (hooks) { test('it serializes records', function (assert) { assert.expect(1); const store = this.owner.lookup('service:store'); + const scope = store.createRecord('scope', {id: 'global'}); const record = store.createRecord('project', { name: 'Project', description: 'Description', + scope }); const serializedRecord = record.serialize(); assert.deepEqual(serializedRecord, { name: 'Project', description: 'Description', + scope_id: 'global' //disabled: false, // TODO: disabled is temporarily disabled }); });