Skip to content

Commit 4415e0e

Browse files
committed
fix(sdk-coin-tao): prevent real api calls by using beforeEach for stubbing
TICKET: WIN-4315
1 parent d2f53ba commit 4415e0e

File tree

1 file changed

+1
-1
lines changed
  • modules/sdk-coin-tao/test/unit

1 file changed

+1
-1
lines changed

modules/sdk-coin-tao/test/unit/tao.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('Tao:', function () {
2727
let headerInfoCB;
2828
let getFeeCB;
2929

30-
before(function () {
30+
beforeEach(function () {
3131
accountInfoCB = sandBox.stub(Tao.prototype, 'getAccountInfo' as keyof Tao);
3232
headerInfoCB = sandBox.stub(Tao.prototype, 'getHeaderInfo' as keyof Tao);
3333
getFeeCB = sandBox.stub(Tao.prototype, 'getFee' as keyof Tao);

0 commit comments

Comments
 (0)