From 3cf3375cab98a67d485fa87c8297f7e55921bbc6 Mon Sep 17 00:00:00 2001 From: Vincent Prothais Date: Mon, 7 Oct 2024 14:28:12 +0200 Subject: [PATCH] fix(outputReferences): rollback unit test when idx0 has no reference --- __tests__/common/formatHelpers/sortByReference.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/common/formatHelpers/sortByReference.test.js b/__tests__/common/formatHelpers/sortByReference.test.js index 5c958ff38..0bc3e270a 100644 --- a/__tests__/common/formatHelpers/sortByReference.test.js +++ b/__tests__/common/formatHelpers/sortByReference.test.js @@ -66,7 +66,7 @@ describe('common', () => { expect(sorted).to.eql([tokens.color.green, tokens.color.red]); }); it(`should keep order when idx0 has no reference(${tokenFormat})`, () => { - const allTokens = [tokens.color.green, tokens.color.red, tokens.color.primary]; + const allTokens = [tokens.color.red, tokens.color.primary]; const sorted = [...allTokens].sort( sortByReference(tokens, { @@ -74,7 +74,7 @@ describe('common', () => { }), ); - expect(sorted).to.eql([tokens.color.green, tokens.color.red, tokens.color.primary]); + expect(sorted).to.eql([tokens.color.red, tokens.color.primary]); }); it(`should reorder, if idx0 references idx1 (${tokenFormat})`, () => { const allTokens = [tokens.color.primary, tokens.color.red];