23 lines
385 B
JavaScript
23 lines
385 B
JavaScript
var Filer = require('../..');
|
|
|
|
function MemoryTestProvider(name) {
|
|
var that = this;
|
|
|
|
function cleanup(callback) {
|
|
that.provider = null;
|
|
callback();
|
|
}
|
|
|
|
function init() {
|
|
if(that.provider) {
|
|
return;
|
|
}
|
|
that.provider = new Filer.FileSystem.providers.Memory(name);
|
|
}
|
|
|
|
this.init = init;
|
|
this.cleanup = cleanup;
|
|
}
|
|
|
|
module.exports = MemoryTestProvider;
|