'use strict'; var assert = require("assert"); var assets = require("../lib/node-ff-assets"); describe('lib/node-ff-assets.js', function() { describe('check exports', function() { it('asserts.factory should not be undefined', function() { assert.equal(false, assets.factory === undefined); }); it('asserts.AssetAssembler should not be undefined', function() { assert.equal(false, assets.AssetAssembler === undefined); }); it('asserts.checkAssemblerConfig should not be undefined', function() { assert.equal(false, assets.checkAssemblerConfig === undefined); }); it('asserts.AssetsBuilder should not be undefined', function() { assert.equal(false, assets.AssetsBuilder === undefined); }); it('asserts.checkBuilderConfig should not be undefined', function() { assert.equal(false, assets.checkBuilderConfig === undefined); }); it('asserts.build should not be undefined', function() { assert.equal(false, assets.build === undefined); }); }); describe('asserts.build', function() { it('check build missing config error', function() { var err = null; try { assets.build(); } catch (error) { err = error; } assert.equal(false, err === undefined); }); }); });