Skip to content

Commit

Permalink
Merge pull request #8184 from stopfstedt/5660_rm_unnecessary_slice_fr…
Browse files Browse the repository at this point in the history
…om_test

rm unnecessary call to Array.slice().
  • Loading branch information
dartajax authored Oct 15, 2024
2 parents bc68b75 + 7bc756d commit 5d0a228
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ module('Integration | Component | user search', function (hooks) {
this.server.createList('instructor-group', 2);
const instructorGroups = await this.owner.lookup('service:store').findAll('instructor-group');
this.set('action', (group) => {
assert.strictEqual(group, instructorGroups.slice()[0]);
assert.strictEqual(group, instructorGroups[0]);
});
this.set('availableInstructorGroups', instructorGroups);
await render(hbs`<UserSearch
Expand Down

0 comments on commit 5d0a228

Please sign in to comment.