mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-04 13:48:56 +02:00
chore: don't fail if array is not ordered properly (#10391)
Spotted it here: https://github.com/Unleash/unleash/actions/runs/16443263365/job/46468801248 <img width="928" height="584" alt="image" src="https://github.com/user-attachments/assets/5e430b91-2664-4a79-9f13-cf6da4640046" /> where the sort order is different.
This commit is contained in:
parent
e140ab63e1
commit
020e9a49ef
@ -254,9 +254,12 @@ test('should not backfill for existing lifecycle', async () => {
|
|||||||
await featureLifecycleStore.backfill();
|
await featureLifecycleStore.backfill();
|
||||||
|
|
||||||
const { body } = await getFeatureLifecycle('my_feature_e');
|
const { body } = await getFeatureLifecycle('my_feature_e');
|
||||||
expect(body).toEqual([
|
expect(body).toEqual(
|
||||||
{ stage: 'initial', enteredStageAt: expect.any(String) },
|
expect.arrayContaining([
|
||||||
{ stage: 'pre-live', enteredStageAt: expect.any(String) },
|
{ stage: 'initial', enteredStageAt: expect.any(String) },
|
||||||
{ stage: 'live', enteredStageAt: expect.any(String) },
|
{ stage: 'pre-live', enteredStageAt: expect.any(String) },
|
||||||
]);
|
{ stage: 'live', enteredStageAt: expect.any(String) },
|
||||||
|
]),
|
||||||
|
);
|
||||||
|
expect(body).toHaveLength(3);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user