From efb8cdb4f508e52f21ea47f32c040db545f061c0 Mon Sep 17 00:00:00 2001 From: JazzarKarim Date: Mon, 4 Dec 2023 16:28:20 -0800 Subject: [PATCH] fixed unit tests --- tests/unit/business-lookup-services.spec.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/unit/business-lookup-services.spec.ts b/tests/unit/business-lookup-services.spec.ts index 67409d6ee..11d9b9c36 100644 --- a/tests/unit/business-lookup-services.spec.ts +++ b/tests/unit/business-lookup-services.spec.ts @@ -24,7 +24,9 @@ describe('Business Lookup Services', () => { .returns(new Promise(resolve => resolve({ data: { searchResults: { results: [result] } } }))) // search and look at results - const results = await BusinessLookupServices.search('FM1000002') + const results = await BusinessLookupServices.search( + 'FM1000002', 'ACTIVE', 'BC,A,ULC,C,S,XP,GP,LP,CUL,XS,LLC,LL,BEN,CP,CC,XL,FI,XCP,PA' + ) expect(results.length).toBe(1) expect(results[0]).toEqual(result) @@ -39,7 +41,9 @@ describe('Business Lookup Services', () => { .returns(new Promise(resolve => resolve({ data: { searchResults: { results: [] } } }))) // search and look at results - const results = await BusinessLookupServices.search('FM1000003') + const results = await BusinessLookupServices.search( + 'FM1000003', 'ACTIVE', 'BC,A,ULC,C,S,XP,GP,LP,CUL,XS,LLC,LL,BEN,CP,CC,XL,FI,XCP,PA' + ) expect(results.length).toBe(0) sinon.restore()