Skip to content

Commit

Permalink
fix: flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
capJavert committed Jan 10, 2025
1 parent 8c131cb commit 9e3f71a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions __tests__/sources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -579,13 +579,11 @@ describe('query sources', () => {
const res = await client.query(query);
expect(res.errors).toBeFalsy();

expect(res.data.sources.edges.map(({ node }) => node.id)).toEqual([
'c',
'a',
'b',
'squad',
'm',
]);
expect(
res.data.sources.edges
.filter(({ node }) => ['a', 'b', 'c'].includes(node.id))
.map(({ node }) => node.id),
).toEqual(['c', 'a', 'b']);
});

it('should not order by members count without the right parameter', async () => {
Expand Down

0 comments on commit 9e3f71a

Please sign in to comment.