Skip to content

Commit

Permalink
Fix flaky test (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
onechiporenko authored Mar 13, 2024
1 parent 0bd7945 commit 564d6ca
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { waitUntil, render, settled } from '@ember/test-helpers';
import { compare } from '@ember/utils';
import hbs from 'htmlbars-inline-precompile';
import { setupMirage } from 'ember-cli-mirage/test-support';
import { generateColumns, generateContent } from '../../helpers/f';
Expand Down Expand Up @@ -418,7 +419,7 @@ module('ModelsTableServerPaginated | Integration', function (hooks) {
assert.deepEqual(
this.ModelsTablePageObject.getColumnCells(1),
this.server.db.users
.sort((a, b) => (a['last-name'] > b['last-name'] ? 1 : -1))
.sort((a, b) => compare(a['last-name'], b['last-name']))
.map((u) => u['first-name'])
.slice(0, 10),
);
Expand Down

0 comments on commit 564d6ca

Please sign in to comment.