html2canvas-pro
Version:
Screenshots with JavaScript. Next generation!
19 lines • 1.09 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const assert_1 = require("assert");
const parser_1 = require("../../syntax/parser");
const font_family_1 = require("../font-family");
const fontFamilyParse = (value) => font_family_1.fontFamily.parse({}, parser_1.Parser.parseValues(value));
describe('property-descriptors', () => {
describe('font-family', () => {
it('sans-serif', () => (0, assert_1.deepEqual)(fontFamilyParse('sans-serif'), ['sans-serif']));
it('great fonts 40 library', () => (0, assert_1.deepEqual)(fontFamilyParse('great fonts 40 library'), ["'great fonts 40 library'"]));
it('preferred font, "quoted fallback font", font', () => (0, assert_1.deepEqual)(fontFamilyParse('preferred font, "quoted fallback font", font'), [
"'preferred font'",
"'quoted fallback font'",
'font'
]));
it("'escaping test\\'s font'", () => (0, assert_1.deepEqual)(fontFamilyParse("'escaping test\\'s font'"), ["'escaping test's font'"]));
});
});
//# sourceMappingURL=font-family.js.map