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

29 lines
818 B
JavaScript
Raw Normal View History

2014-05-23 20:53:50 +00:00
var Filer = require('../../..');
var expect = require('chai').expect;
2013-11-27 17:18:09 +00:00
2014-05-23 20:53:50 +00:00
describe("Filer.FileSystem.providers", function() {
it("is defined", function() {
expect(Filer.FileSystem.providers).to.exist;
});
it("has IndexedDB constructor", function() {
expect(Filer.FileSystem.providers.IndexedDB).to.be.a('function');
});
2013-11-27 17:18:09 +00:00
2014-05-23 20:53:50 +00:00
it("has WebSQL constructor", function() {
expect(Filer.FileSystem.providers.WebSQL).to.be.a('function');
});
2014-05-23 20:53:50 +00:00
it("has Memory constructor", function() {
expect(Filer.FileSystem.providers.Memory).to.be.a('function');
});
2013-11-27 17:18:09 +00:00
2014-05-23 20:53:50 +00:00
it("has a Default constructor", function() {
expect(Filer.FileSystem.providers.Default).to.be.a('function');
});
2014-05-23 20:53:50 +00:00
it("has Fallback constructor", function() {
expect(Filer.FileSystem.providers.Fallback).to.be.a('function');
2013-11-27 17:18:09 +00:00
});
});