From 404847c157bfcdbc2f7056985c70fcba1af8c28e Mon Sep 17 00:00:00 2001 From: Thusaraka Palliyeguru <87273240+thusarakap@users.noreply.github.com> Date: Mon, 25 Mar 2024 06:33:19 +0530 Subject: [PATCH] Update algorithm.test.js --- test/algorithm.test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/algorithm.test.js b/test/algorithm.test.js index ee798bf..9532e0b 100644 --- a/test/algorithm.test.js +++ b/test/algorithm.test.js @@ -17,35 +17,35 @@ describe('negateDBValues', () => { test('negates dB values and applies caps for portable speaker type', () => { const dBValues = [-10, -10, 10, 10, 10, 10, 10]; - const speakerType = 'portable speaker'; + const speakerType = 'portable'; const result = negateDBValues(dBValues, speakerType); expect(result).toEqual([4, 5, -10, -10, -10, -10, -10]); }); test('negates dB values and applies caps for soundbars speaker type', () => { const dBValues = [10, 10, 10, -10, -10, -10, -10]; - const speakerType = 'soundbars'; + const speakerType = 'soundbar'; const result = negateDBValues(dBValues, speakerType); expect(result).toEqual([-10, -10, -10, 10, 6, 6, 6]); }); test('negates dB values and applies caps for Outdoor speakers type', () => { const dBValues = [10, 10, 10, 10, 10, -10, -10]; - const speakerType = 'Outdoor speakers'; + const speakerType = 'outdoor'; const result = negateDBValues(dBValues, speakerType); expect(result).toEqual([-10, -10, -10, -10, -10, 6, 7]); }); test('negates dB values and applies caps for Gaming speakers type', () => { const dBValues = [10, 10, 10, 10, -10, -10, 10]; - const speakerType = 'Gaming speakers'; + const speakerType = 'desktop'; const result = negateDBValues(dBValues, speakerType); expect(result).toEqual([-10, -10, -10, -10, 7, 8, -10]); }); test('negates dB values and applies caps for Bluetooth Speakers type', () => { const dBValues = [-10, -10, 10, 10, 10, 10, 10]; - const speakerType = 'Bluetooth Speakers'; + const speakerType = 'floorstanding'; const result = negateDBValues(dBValues, speakerType); expect(result).toEqual([5, 5, -10, -10, -10, -10, -10]); });