Skip to content

Commit

Permalink
fix(maxby-spec): fix maxby test
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Sep 1, 2020
1 parent a888ce8 commit 2699e40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/iterable/maxby-spec.ts
Expand Up @@ -4,7 +4,7 @@ import { empty, maxBy, sequenceEqual } from 'ix/iterable';
test('Iterable#maxBy', () => {
const source = [3, 5, 7, 6, 4, 2];

const res = maxBy(source, { selector: async (x) => Math.floor(x / 2) });
const res = maxBy(source, { selector: (x) => Math.floor(x / 2) });
expect(sequenceEqual(res, [7, 6])).toBeTruthy();
});

Expand Down

0 comments on commit 2699e40

Please sign in to comment.