UNPKG

node-hag

Version:

Node HTML Asset Generator (HAG) - converts HTML and CSS templates into rendered Image assets, and can also produce Text and JSON assets.

26 lines (23 loc) 603 B
/* eslint-env mocha */ const expect = require('chai').expect const hag = require('../generator.js') describe('API.defaultOptions', function () { const api = hag() const defaultOptions = api.defaultOptions const expectedKeys = [ 'port', 'templatesPath', 'outputPath', 'instructionsPath', 'dataPath', 'activeCommand', 'serverLog' ] describe(`should have expected keys`, function () { expectedKeys.forEach(function (key) { it(`expecting API.defaultOptions.${key}`, function () { expect(defaultOptions).to.have.property(key) }) }) }) })