From a41842793c23fbc1ebb48a981af0f7d1133fbc7d Mon Sep 17 00:00:00 2001 From: LucasBeneston Date: Thu, 26 Dec 2024 16:37:54 +0100 Subject: [PATCH] (PC-33482) feat(NC): use it instead test in priceSchema tests --- .../schema/priceSchema/priceSchema.native.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/features/search/helpers/schema/priceSchema/priceSchema.native.test.ts b/src/features/search/helpers/schema/priceSchema/priceSchema.native.test.ts index 38d1e2d5966..8ec5ecb4320 100644 --- a/src/features/search/helpers/schema/priceSchema/priceSchema.native.test.ts +++ b/src/features/search/helpers/schema/priceSchema/priceSchema.native.test.ts @@ -8,7 +8,7 @@ describe('priceSchema', () => { const initialCredit = 100 const currency = Currency.EURO - test('should validate correctly when minPrice and maxPrice are within range', async () => { + it('should validate correctly when minPrice and maxPrice are within range', async () => { const validData = { minPrice: '10,00', maxPrice: '50,00', @@ -19,7 +19,7 @@ describe('priceSchema', () => { await expect(priceSchema({ initialCredit, currency }).isValid(validData)).resolves.toBe(true) }) - test('should invalidate when maxPrice exceeds initialCredit', async () => { + it('should invalidate when maxPrice exceeds initialCredit', async () => { const invalidData = { minPrice: '10,00', maxPrice: '150,00', @@ -30,7 +30,7 @@ describe('priceSchema', () => { await expect(priceSchema({ initialCredit, currency }).isValid(invalidData)).resolves.toBe(false) }) - test('should invalidate when minPrice is greater than maxPrice', async () => { + it('should invalidate when minPrice is greater than maxPrice', async () => { const invalidData = { minPrice: '60,00', maxPrice: '50,00', @@ -41,7 +41,7 @@ describe('priceSchema', () => { await expect(priceSchema({ initialCredit, currency }).isValid(invalidData)).resolves.toBe(false) }) - test('should validate when maxPrice is empty and minPrice is within range', async () => { + it('should validate when maxPrice is empty and minPrice is within range', async () => { const validData = { minPrice: '10,00', maxPrice: '', @@ -52,7 +52,7 @@ describe('priceSchema', () => { await expect(priceSchema({ initialCredit, currency }).isValid(validData)).resolves.toBe(true) }) - test('should invalidate when minPrice has incorrect format', async () => { + it('should invalidate when minPrice has incorrect format', async () => { const invalidData = { minPrice: '10,000', maxPrice: '50,00', @@ -63,7 +63,7 @@ describe('priceSchema', () => { await expect(priceSchema({ initialCredit, currency }).isValid(invalidData)).resolves.toBe(false) }) - test('should invalidate when maxPrice has incorrect format', async () => { + it('should invalidate when maxPrice has incorrect format', async () => { const invalidData = { minPrice: '10,00', maxPrice: '50.000',