mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 04:05:52 +00:00
Add simplified API
This commit is contained in:
13
packages/ripple-keypairs/test/utils-test.js
Normal file
13
packages/ripple-keypairs/test/utils-test.js
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
const assert = require('assert');
|
||||
const utils = require('../src/utils');
|
||||
|
||||
describe('utils', () => {
|
||||
it('hexToBytes - zero', () => {
|
||||
assert.deepEqual(utils.hexToBytes('000000'), [0, 0, 0]);
|
||||
});
|
||||
|
||||
it('hexToBytes - DEADBEEF', () => {
|
||||
assert.deepEqual(utils.hexToBytes('DEADBEEF'), [222, 173, 190, 239]);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user