Fix some failing tests
This commit is contained in:
parent
4ab41c4aea
commit
930e5ce2e3
|
@ -46,10 +46,10 @@ function nodeDownload(uri, callback) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = function(uri, callback) {
|
module.exports.download = (function() {
|
||||||
if (typeof XMLHttpRequest === 'undefined') {
|
if (typeof XMLHttpRequest === 'undefined') {
|
||||||
nodeDownload(uri, callback);
|
return nodeDownload;
|
||||||
} else {
|
} else {
|
||||||
browserDownload(uri, callback);
|
return browserDownload;
|
||||||
}
|
}
|
||||||
};
|
}());
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
var Filer = require('../..');
|
var Filer = require('../..');
|
||||||
var expect = require('chai');
|
var expect = require('chai').expect;
|
||||||
|
|
||||||
describe("Filer", function() {
|
describe("Filer", function() {
|
||||||
it("is defined", function() {
|
it("is defined", function() {
|
||||||
|
|
Loading…
Reference in New Issue