UNPKG

anbani-textart

Version:

Text Art Generator by Anbani.ge

34 lines (23 loc) 855 B
const assert = require("assert") const textArt = require("../dist/TextArt.js") describe('CommonJS module testing', function () { describe('Font Metadata and Rendering', function () { for (let [fontKey, font] of Object.entries(textArt.fonts)) { describe(`font ${fontKey}`, function () { it(`should have title property`, function () { assert.ok(font.title) }); it(`should have author property`, function () { assert.ok(font.author) }); it(`should have generate method`, function () { // console.log(font.constructor.name) assert.ok(typeof font.generate === 'function') }); it(`should have generate method implemented`, function () { assert.ok(font.generate("გამარჯობა")) }); }); } }); });