2
0
Fork 0
node-ff-assets/test/test-node-ff-assets.js
2015-06-28 17:44:01 +02:00

40 lines
1.2 KiB
JavaScript

'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);
});
});
});