* feat: kboot package * feat: kboot package * fix: wait 1 sec after device is available * test: fix unit test * refactor: clean unused codes * doc: improve readme.md * doc: improve readme.md * test: fix unit test * chore: fix lint settings * style: fix linting issues
11 lines
380 B
TypeScript
11 lines
380 B
TypeScript
import { encodeStringToParams } from '../../src/util';
|
|
|
|
describe('encodeStringToParams', () => {
|
|
xit('should convert 8 character to little endian 4 byte array', () => {
|
|
const result = encodeStringToParams('0403020108070605');
|
|
|
|
const expectedResult = [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08];
|
|
expect(result).toEqual(expectedResult);
|
|
});
|
|
});
|