UNPKG

@plugnet/util-crypto

Version:
12 lines (10 loc) 416 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('xxhash64AsRaw', () => { it('creates the correct non-prefixed hex output', () => { expect((0, _.xxhash64AsRaw)('abcd', 0xabcd)).toEqual('e29f70f8b8c96df7'); }); });