UNPKG

@plugnet/util-crypto

Version:
12 lines (10 loc) 413 B
"use strict"; var _ = require("."); // Copyright 2017-2019 @polkadot/util-crypto authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. describe('xxhash64AsBn', () => { it('creates the correct BN output', () => { expect((0, _.xxhash64AsBn)('abcd', 0xabcd).toString(16)).toEqual('e29f70f8b8c96df7'); }); });