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

23 lines
798 B
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 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);
});
});
});