UNPKG

compound-binary-file-js

Version:

This is an implementation of [Compound Binary File v.3](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-cfb/53989ce4-7b05-4f8d-829b-d08d6148375b) \ Allows reading existing files, creation of the/write operation

10 lines (9 loc) 333 B
import {toUTF16Bytes, toUTF16String} from "../src/utils"; import { expect } from "chai"; describe('test utility methods', () => { it('string encoding to/from UTF16 bytes', () => { const str = "abc"; const asUTF16Bytes = toUTF16Bytes(str); expect(toUTF16String(asUTF16Bytes)).eq(str); }); });