File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import { Id } from '../../../src/model/Id';
1919import { MosaicId } from '../../../src/model/mosaic/MosaicId' ;
2020import { MosaicNonce } from '../../../src/model/mosaic/MosaicNonce' ;
2121import { NetworkType } from '../../../src/model/network/NetworkType' ;
22+ import { expect } from 'chai' ;
2223
2324describe ( '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} ) ;
You can’t perform that action at this time.
0 commit comments