2
0
Fork 0
es5-ff-spa-loader/test/spec/test-exports.js

38 lines
1.3 KiB
JavaScript
Raw Normal View History

2016-04-22 08:34:11 +00:00
define(['es5-ff-spa-loader'], function(FFSpaLoader) {
2016-04-23 01:58:27 +00:00
'use strict';
2016-04-22 08:34:11 +00:00
describe('Check module exports', function() {
describe('Check undefined', function() {
it('FFSpaLoader.options should be defined', function() {
expect(FFSpaLoader.options === undefined).toEqual(false);
});
it('FFSpaLoader.factory should be defined', function() {
expect(FFSpaLoader.factory === undefined).toEqual(false);
});
it('FFSpaLoader.start should be defined', function() {
expect(FFSpaLoader.start === undefined).toEqual(false);
});
it('FFSpaLoader.clearServerUrl should be defined', function() {
expect(FFSpaLoader.clearServerUrl === undefined).toEqual(false);
});
it('FFSpaLoader.clearCache should be defined', function() {
expect(FFSpaLoader.clearCache === undefined).toEqual(false);
});
});
describe('Check function', function() {
it('FFSpaLoader.start should be function', function() {
expect(typeof FFSpaLoader.start === 'function').toEqual(true);
});
it('FFSpaLoader.clearServerUrl should be function', function() {
expect(typeof FFSpaLoader.clearServerUrl === 'function').toEqual(true);
});
it('FFSpaLoader.clearCache should be function', function() {
expect(typeof FFSpaLoader.clearCache === 'function').toEqual(true);
});
});
});
});