Skip to content

Commit 3d92431

Browse files
committed
Added tests
1 parent 9e5667c commit 3d92431

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/model/mosaic/MosaicId.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { Id } from '../../../src/model/Id';
1919
import { MosaicId } from '../../../src/model/mosaic/MosaicId';
2020
import { MosaicNonce } from '../../../src/model/mosaic/MosaicNonce';
2121
import { NetworkType } from '../../../src/model/network/NetworkType';
22+
import { expect } from 'chai';
2223

2324
describe('MosaicId', () => {
2425
const publicKey = 'b4f12e7c9f6946091e2cb8b6d3a12b50d17ccbbf646386ea27ce2946a7423dcf';
@@ -46,4 +47,10 @@ describe('MosaicId', () => {
4647

4748
deepEqual(id1.id, id2.id);
4849
});
50+
51+
it('should throw invalid size', () => {
52+
expect(() => {
53+
new MosaicId('85BBEA6CC462B24499');
54+
}).to.throw(Error, 'Invalid size for MosaicId hexadecimal notation');
55+
});
4956
});

0 commit comments

Comments
 (0)