'use strict'; define(['es5-ff-spa-loader'], function(FFSpaLoader) { describe('Check factory detect', function() { it('FFSpaLoader.factory.detect.localStorage', function() { expect(FFSpaLoader.factory.detect.localStorage()).toEqual(true); }); it('FFSpaLoader.factory.detect.openDatabase', function() { expect(FFSpaLoader.factory.detect.openDatabase()).toEqual(true); }); it('FFSpaLoader.factory.detect.sqlitePlugin', function() { expect(FFSpaLoader.factory.detect.sqlitePlugin()).toEqual(false); }); it('FFSpaLoader.factory.detect.cordova', function() { expect(FFSpaLoader.factory.detect.cordova()).toEqual(false); }); it('FFSpaLoader.factory.detect.cordovaDevice', function() { expect(FFSpaLoader.factory.detect.cordovaDevice()).toEqual(false); }); }); });