UNPKG

bundalo

Version:

Extract/cache/render property files/strings using i18n rules and various rendering engines

24 lines (21 loc) 548 B
/* global describe, it, before */ 'use strict'; var assert = require('assert'); var bundalo = require("../index"); describe("bundalo Error conditions @errors@", function () { it("will throw an error with no contentPath", function (done) { assert.throws(function () { bundalo({"engine": "dust"}); }, Error); done(); }); it("will throw an error with non-existent engine", function (done) { assert.throws( function () { bundalo({"engine": "raptorjs", "contentPath": "./"}); }, Error ); done(); }); });