2016-01-17 20:57:59 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var assert = require('assert');
|
|
|
|
var FFSpaLoader = require('../es5-ff-spa-loader');
|
|
|
|
|
|
|
|
describe('Check module exports', function() {
|
|
|
|
it('FFSpaLoader.options should be defined', function() {
|
|
|
|
assert.equal(false, FFSpaLoader.options === undefined);
|
|
|
|
});
|
|
|
|
it('FFSpaLoader.factory should be defined', function() {
|
|
|
|
assert.equal(false, FFSpaLoader.factory === undefined);
|
|
|
|
});
|
|
|
|
it('FFSpaLoader.start should be defined', function() {
|
|
|
|
assert.equal(false, FFSpaLoader.start === undefined);
|
|
|
|
});
|
|
|
|
it('FFSpaLoader.start should be function', function() {
|
|
|
|
assert.equal(true, typeof FFSpaLoader.start === 'function');
|
|
|
|
});
|
|
|
|
it('FFSpaLoader.clearServerUrl should be defined', function() {
|
|
|
|
assert.equal(false, FFSpaLoader.clearServerUrl === undefined);
|
|
|
|
});
|
|
|
|
it('FFSpaLoader.clearServerUrl should be function', function() {
|
|
|
|
assert.equal(true, typeof FFSpaLoader.clearServerUrl === 'function');
|
|
|
|
});
|
2016-01-24 18:44:00 +00:00
|
|
|
it('FFSpaLoader.clearCache should be defined', function() {
|
|
|
|
assert.equal(false, FFSpaLoader.clearCache === undefined);
|
|
|
|
});
|
|
|
|
it('FFSpaLoader.clearCache should be function', function() {
|
|
|
|
assert.equal(true, typeof FFSpaLoader.clearCache === 'function');
|
|
|
|
});
|
2016-01-17 20:57:59 +00:00
|
|
|
});
|
|
|
|
|