Skip to content

Commit

Permalink
Merge pull request #51 from atonoy/feature/add-test-pattern
Browse files Browse the repository at this point in the history
added new pattern
  • Loading branch information
fukaoi authored Apr 14, 2022
2 parents 1d1a6cd + 80ab114 commit 2bc4649
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/shared/test/node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@ describe('Node', () => {
assert.equal(res2nd, res3rd);
});

it('Change commitment, check singleton object', async () => {
const res = Node.getConnection().commitment;
Node.changeConnection({
commitment: 'finalized'
});
const res2nd = Node.getConnection().commitment;
assert.notEqual(res, res2nd);
const res3rd = Node.getConnection().commitment;
assert.equal(res2nd, res3rd);
});

it('Change commitment destination, check singleton object', async () => {
const res = Node.getConnection().commitment;
Node.changeConnection({
Expand Down

0 comments on commit 2bc4649

Please sign in to comment.