* #239 Embedded fonts * Add boilerplate for font table * Fix linting * Fix linting * Fix odttf naming * Correct writing of fonts to relationships and font table new uuid function * Add font to run * Add demo Fix tests * Add character set support * Add tests * Write tests
15 lines
450 B
TypeScript
15 lines
450 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
|
|
import { obfuscate } from "./obfuscate-ttf-to-odttf";
|
|
|
|
describe("obfuscate", () => {
|
|
it("should work", () => {
|
|
const buffer = obfuscate(Buffer.from(""), "00000000-0000-0000-0000-000000000000");
|
|
expect(buffer).toBeDefined();
|
|
});
|
|
|
|
it("should throw error if uuid is not correct", () => {
|
|
expect(() => obfuscate(Buffer.from(""), "bad-uuid")).toThrowError();
|
|
});
|
|
});
|