filer/tests/spec/providers/providers.spec.js

28 lines
883 B
JavaScript
Raw Normal View History

2013-11-27 17:18:09 +00:00
define(["IDBFS"], function(IDBFS) {
describe("IDBFS.FileSystem.providers", function() {
2013-11-27 17:18:09 +00:00
it("is defined", function() {
expect(typeof IDBFS.FileSystem.providers).not.toEqual(undefined);
});
it("has IndexedDB constructor", function() {
expect(typeof IDBFS.FileSystem.providers.IndexedDB).toEqual('function');
});
it("has WebSQL constructor", function() {
expect(typeof IDBFS.FileSystem.providers.WebSQL).toEqual('function');
});
2013-11-27 17:18:09 +00:00
it("has Memory constructor", function() {
expect(typeof IDBFS.FileSystem.providers.Memory).toEqual('function');
});
it("has a Default constructor", function() {
expect(typeof IDBFS.FileSystem.providers.Default).toEqual('function');
});
it("has Fallback constructor", function() {
expect(typeof IDBFS.FileSystem.providers.Fallback).toEqual('function');
});
2013-11-27 17:18:09 +00:00
});
});