Skip to content

Commit

Permalink
feat: updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavkparti committed Aug 20, 2023
1 parent e713fdd commit 1e41d78
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions server/handlers/transferHandler.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ describe('transferRouter', () => {
result: {
id: tokenId,
state: TransferEnums.STATE.completed,
parameters: {
bundle: {
bundleSize: 1,
},
},
},
status: 201,
});
Expand All @@ -128,6 +133,12 @@ describe('transferRouter', () => {
expect(res.body).eql({
id: tokenId,
state: TransferEnums.STATE.completed,
parameters: {
bundle: {
bundleSize: 1,
},
},
token_count: 1
});
expect(
initiateTranferStub.calledOnceWithExactly(
Expand All @@ -151,6 +162,11 @@ describe('transferRouter', () => {
result: {
id: tokenId,
state: TransferEnums.STATE.completed,
parameters: {
bundle: {
bundleSize: 1,
},
},
},
status: 202,
});
Expand All @@ -168,6 +184,12 @@ describe('transferRouter', () => {
expect(res.body).eql({
id: tokenId,
state: TransferEnums.STATE.completed,
parameters: {
bundle: {
bundleSize: 1,
},
},
token_count: 1
});
expect(
initiateTranferStub.calledOnceWithExactly(
Expand Down

0 comments on commit 1e41d78

Please sign in to comment.