diff --git a/tests/components/crate-sidebar/playground-button-test.js b/tests/components/crate-sidebar/playground-button-test.js index b088098e79..48f7207d30 100644 --- a/tests/components/crate-sidebar/playground-button-test.js +++ b/tests/components/crate-sidebar/playground-button-test.js @@ -33,7 +33,7 @@ module('Component | CrateSidebar | Playground Button', function (hooks) { let store = this.owner.lookup('service:store'); this.crate = await store.findRecord('crate', crate.name); - this.version = (await this.crate.versions).firstObject; + this.version = (await this.crate.versions).slice()[0]; await this.crate.loadOwnersTask.perform(); await render(hbs``); @@ -46,7 +46,7 @@ module('Component | CrateSidebar | Playground Button', function (hooks) { let store = this.owner.lookup('service:store'); this.crate = await store.findRecord('crate', crate.name); - this.version = (await this.crate.versions).firstObject; + this.version = (await this.crate.versions).slice()[0]; await this.crate.loadOwnersTask.perform(); let expectedHref = @@ -65,7 +65,7 @@ module('Component | CrateSidebar | Playground Button', function (hooks) { let store = this.owner.lookup('service:store'); this.crate = await store.findRecord('crate', crate.name); - this.version = (await this.crate.versions).firstObject; + this.version = (await this.crate.versions).slice()[0]; await this.crate.loadOwnersTask.perform(); render(hbs``); @@ -84,7 +84,7 @@ module('Component | CrateSidebar | Playground Button', function (hooks) { let store = this.owner.lookup('service:store'); this.crate = await store.findRecord('crate', crate.name); - this.version = (await this.crate.versions).firstObject; + this.version = (await this.crate.versions).slice()[0]; await this.crate.loadOwnersTask.perform(); await render(hbs``); diff --git a/tests/components/crate-sidebar/toml-snippet-test.js b/tests/components/crate-sidebar/toml-snippet-test.js index 87a2c96e37..33cb47ae65 100644 --- a/tests/components/crate-sidebar/toml-snippet-test.js +++ b/tests/components/crate-sidebar/toml-snippet-test.js @@ -17,7 +17,7 @@ module('Component | CrateSidebar | toml snippet', function (hooks) { let store = this.owner.lookup('service:store'); this.crate = await store.findRecord('crate', crate.name); - this.version = (await this.crate.versions).firstObject; + this.version = (await this.crate.versions).slice()[0]; await this.crate.loadOwnersTask.perform(); await render(hbs``); @@ -35,7 +35,7 @@ module('Component | CrateSidebar | toml snippet', function (hooks) { let store = this.owner.lookup('service:store'); this.crate = await store.findRecord('crate', crate.name); - this.version = (await this.crate.versions).firstObject; + this.version = (await this.crate.versions).slice()[0]; await this.crate.loadOwnersTask.perform(); await render(hbs``); @@ -48,7 +48,7 @@ module('Component | CrateSidebar | toml snippet', function (hooks) { let store = this.owner.lookup('service:store'); this.crate = await store.findRecord('crate', crate.name); - this.version = (await this.crate.versions).firstObject; + this.version = (await this.crate.versions).slice()[0]; await this.crate.loadOwnersTask.perform(); await render(hbs``);