Skip to content

Commit

Permalink
fix test case for all sensed labels
Browse files Browse the repository at this point in the history
  • Loading branch information
jiji14 committed Jun 6, 2024
1 parent 4ed6464 commit f4a87dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions www/__tests__/metricsHelper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,25 +238,25 @@ describe('metricsHelper', () => {
expect(result).toBe(true);
});

it('returns true for all sensed labels', () => {
it('returns false for all sensed labels', () => {
const modeMap = [
{
key: 'label_mode1',
key: 'SENSED_MODE_1',
values: [
['value1', 10],
['value2', 20],
],
},
{
key: 'label_mode2',
key: 'SENSED_MODE_2',
values: [
['value3', 30],
['value4', 40],
],
},
];
const result = isCustomLabels(modeMap);
expect(result).toBe(true);
expect(result).toBe(false);
});

it('returns false for mixed custom and sensed labels', () => {
Expand Down

0 comments on commit f4a87dd

Please sign in to comment.