Skip to content

Commit

Permalink
uglier
Browse files Browse the repository at this point in the history
  • Loading branch information
leeoniya committed Dec 31, 2024
1 parent deae04b commit 76af88d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/scenes/src/variables/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,14 +301,11 @@ describe('searchOptions falls back to substring matching for non-latin needles',
'南投縣',
'高雄市',
'台中第一高級中學',
].map(v => ({label: v, value: v}));
].map((v) => ({ label: v, value: v }));

const searcher = searchOptions(options);

expect(searcher('南', 'key').map((o) => o.label!)).toEqual([
'台南市',
'南投縣',
]);
expect(searcher('南', 'key').map((o) => o.label!)).toEqual(['台南市', '南投縣']);
});
});

Expand Down

0 comments on commit 76af88d

Please sign in to comment.