Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit c35d629

Browse files
committed
Add fault test for store api
1 parent 678db34 commit c35d629

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/api/StoresApi.spec.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ describe('StoresApi', () => {
7575
expect(store.constructor.name).to.be('Store')
7676
})
7777
)
78+
79+
it('should throw Fault when calling getStoresByID with unknown store id', () => {
80+
instance.getStoresByID('badstoreid')
81+
.catch((fault) => {
82+
expect(fault.constructor.name).to.be('Fault')
83+
console.log('fault: ', fault)
84+
})
85+
})
7886
})
7987

8088
describe('getStoresByIDs', () => {

0 commit comments

Comments
 (0)