mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-14 01:16:17 +02:00
parent
7c275917f3
commit
01a8273bd0
@ -13,6 +13,7 @@ import {
|
|||||||
DEFAULT_STRATEGY_SEGMENTS_LIMIT,
|
DEFAULT_STRATEGY_SEGMENTS_LIMIT,
|
||||||
} from '../../../../lib/util/segments';
|
} from '../../../../lib/util/segments';
|
||||||
import { collectIds } from '../../../../lib/util/collect-ids';
|
import { collectIds } from '../../../../lib/util/collect-ids';
|
||||||
|
import { arraysHaveSameItems } from '../../../../lib/util/arraysHaveSameItems';
|
||||||
|
|
||||||
let db: ITestDb;
|
let db: ITestDb;
|
||||||
let app: IUnleashTest;
|
let app: IUnleashTest;
|
||||||
@ -309,5 +310,7 @@ test('should send all segments that are in use by feature', async () => {
|
|||||||
.flat()
|
.flat()
|
||||||
.filter((x) => !!x);
|
.filter((x) => !!x);
|
||||||
const toggleSegmentIds = [...new Set(allSegmentIds)];
|
const toggleSegmentIds = [...new Set(allSegmentIds)];
|
||||||
expect(globalSegmentIds).toEqual(toggleSegmentIds);
|
expect(arraysHaveSameItems(globalSegmentIds, toggleSegmentIds)).toEqual(
|
||||||
|
true,
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user