Skip to content

Commit cbdb3c1

Browse files
authored
Merge pull request #374 from evias/g373-fix-nonce-test
issue#373: use Uint8Array comparison for toDTO() with Uint8Array return type
2 parents c583078 + 2b9bbe5 commit cbdb3c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/model/mosaic/MosaicNonce.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('MosaicNonce', () => {
2424
it('should be created from Uint8Array', () => {
2525
const nonce = new MosaicNonce(new Uint8Array([0x0, 0x0, 0x0, 0x0]));
2626
deepEqual(nonce.nonce, new Uint8Array([0x0, 0x0, 0x0, 0x0]));
27-
deepEqual(nonce.toDTO(), [0, 0, 0, 0]);
27+
deepEqual(nonce.toDTO(), new Uint8Array([0x0, 0x0, 0x0, 0x0]));
2828
});
2929

3030
it('should create random nonce', () => {

0 commit comments

Comments
 (0)