Skip to content

Commit

Permalink
fix(outputReferences): rollback unit test when idx0 has no reference
Browse files Browse the repository at this point in the history
  • Loading branch information
vprothais committed Oct 7, 2024
1 parent 351bca4 commit 3cf3375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __tests__/common/formatHelpers/sortByReference.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ 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, {
usesDtcg,
}),
);

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];
Expand Down

0 comments on commit 3cf3375

Please sign in to comment.