Skip to content

Commit

Permalink
fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JazzarKarim committed Dec 5, 2023
1 parent ec7f5ca commit efb8cdb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/unit/business-lookup-services.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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()
Expand Down

0 comments on commit efb8cdb

Please sign in to comment.