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

29 lines
822 B
JavaScript
Raw Permalink Normal View History

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