Update tests

This commit is contained in:
Jaco Greeff
2018-10-04 08:21:12 +02:00
parent 84df43ff06
commit a4572e42c2
@@ -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