From a4572e42c2f8a60830d35c047e4edf7844c3775d Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Thu, 4 Oct 2018 08:21:12 +0200 Subject: [PATCH] Update tests --- packages/type-extrinsics/src/fromMetadata.spec.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/type-extrinsics/src/fromMetadata.spec.js b/packages/type-extrinsics/src/fromMetadata.spec.js index e4d2960101..5c695929fb 100644 --- a/packages/type-extrinsics/src/fromMetadata.spec.js +++ b/packages/type-extrinsics/src/fromMetadata.spec.js @@ -20,9 +20,11 @@ describe('fromMetadata', () => { expect(() => newExtrinsics.balances.setBalance('5C62W7ELLAAfix9LYrcx5smtcffbhvThkM5x7xfMeYXCt72s', 2, 3)).not.toThrow(); }); - it('should return the correct storage key', () => { - expect(newExtrinsics.timestamp.set([10101]).toU8a(true)).toEqual( + it('should return properly-encodec trsnactions', () => { + expect(newExtrinsics.timestamp.set([10101]).toU8a()).toEqual( new Uint8Array([ + // length (encoded) + 10 << 2, // index 3, 0, // values