From a1902436174bbb1e9b00a720cd637b74ed6c9297 Mon Sep 17 00:00:00 2001 From: Kristina Durivage Date: Wed, 5 Mar 2025 08:25:13 -0600 Subject: [PATCH] Change tests --- public/app/features/transformers/utils.test.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/public/app/features/transformers/utils.test.ts b/public/app/features/transformers/utils.test.ts index a7f556397db..219968917e4 100644 --- a/public/app/features/transformers/utils.test.ts +++ b/public/app/features/transformers/utils.test.ts @@ -25,19 +25,19 @@ describe('validator', () => { expect(numberOrVariableValidator('1')).toBe(true); }); - it('validats a string that is a negative integer', () => { + it('validates a string that is a negative integer', () => { expect(numberOrVariableValidator('-1')).toBe(true); }); - it('validats a string that is zero', () => { + it('validates a string that is zero', () => { expect(numberOrVariableValidator('0')).toBe(true); }); - it('validats a string that is a float', () => { + it('validates a string that is a float', () => { expect(numberOrVariableValidator('1.2')).toBe(true); }); - it('validats a string that is a negative float', () => { + it('validates a string that is a negative float', () => { expect(numberOrVariableValidator('-1.2')).toBe(true); }); @@ -49,7 +49,11 @@ describe('validator', () => { expect(numberOrVariableValidator('$foo')).toBe(true); }); - it('fails a string that has multiple variables', () => { - expect(numberOrVariableValidator('$foo$asd')).toBe(false); + it('validates a string that has multiple variables', () => { + expect(numberOrVariableValidator('$foo$asd')).toBe(true); + }); + + it('validates a string that has a bracket variable', () => { + expect(numberOrVariableValidator('${foo}')).toBe(true); }); });