From f4a87ddcba470f1b04fc65555213323ceb64b14f Mon Sep 17 00:00:00 2001 From: Jijeong Lee Date: Wed, 5 Jun 2024 17:33:31 -0700 Subject: [PATCH] fix test case for all sensed labels --- www/__tests__/metricsHelper.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/__tests__/metricsHelper.test.ts b/www/__tests__/metricsHelper.test.ts index d573415d6..dbbf32c35 100644 --- a/www/__tests__/metricsHelper.test.ts +++ b/www/__tests__/metricsHelper.test.ts @@ -238,17 +238,17 @@ 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], @@ -256,7 +256,7 @@ describe('metricsHelper', () => { }, ]; const result = isCustomLabels(modeMap); - expect(result).toBe(true); + expect(result).toBe(false); }); it('returns false for mixed custom and sensed labels', () => {