Skip to content

Commit

Permalink
test: ✅ update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CourtHive committed Apr 18, 2024
1 parent eab4c98 commit aa29983
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import { xa } from '@Tools/extractAttributes';
import { setSubscriptions } from '@Global/state/globalState';
import { generateTeamTournament } from './generateTestTeamTournament';
import { setSubscriptions } from '@Global/state/globalState';
import { findExtension } from '@Acquire/findExtension';
import { intersection } from '@Tools/arrays';
import tournamentEngine from '@Engines/syncEngine';
import { xa } from '@Tools/extractAttributes';
import { intersection } from '@Tools/arrays';
import { expect, it } from 'vitest';

// constants
import { COMPASS, ROUND_ROBIN } from '@Constants/drawDefinitionConstants';
import { MODIFY_DRAW_DEFINITION } from '@Constants/topicConstants';
import { LINEUPS } from '@Constants/extensionConstants';
import { TEAM } from '@Constants/participantConstants';
import { SINGLES } from '@Constants/matchUpTypes';
import { COMPASS, ROUND_ROBIN } from '@Constants/drawDefinitionConstants';

const scenario = {
drawType: COMPASS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ it('can generate balanced gendered teams for Mixed Gender events', () => {
const previousRankingProfile = previousTeamRankingProfile[j];
const expectLess = j % 2;
if (expectLess) {
expect(rankingProfile.value).toBeLessThan(previousRankingProfile.value);
expect(rankingProfile.value).toBeLessThanOrEqual(previousRankingProfile.value);
} else {
expect(rankingProfile.value).toBeGreaterThan(previousRankingProfile.value);
expect(rankingProfile.value).toBeGreaterThanOrEqual(previousRankingProfile.value);
}
});
}
Expand Down

0 comments on commit aa29983

Please sign in to comment.