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