Skip to content

Commit 24b819c

Browse files
committed
test(AssetParams): add instance check
1 parent 7468a85 commit 24b819c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

lib/algorand.asset.params.spec.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// #region imports
2+
import {AssetParams, AssetParamsBuilder} from "./algorand.asset.params";
3+
4+
// #endregion imports
5+
describe("AssetParams", () => {
6+
it("(OK) AssetParams Builder", async () => {
7+
// #region quickStart
8+
const assetParams = new AssetParamsBuilder()
9+
.addTotal(1000)
10+
.addDecimals(1)
11+
.addAssetName('Yet Another Asset')
12+
.addUnitName('YEET')
13+
.get()
14+
// #endregion quickStart
15+
16+
expect(assetParams).toBeDefined()
17+
expect(assetParams).toBeInstanceOf(AssetParams)
18+
})
19+
})

0 commit comments

Comments
 (0)