Fix some failing tests

This commit is contained in:
David Humphrey (:humph) david.humphrey@senecacollege.ca 2014-05-23 17:01:57 -04:00
parent 4ab41c4aea
commit 930e5ce2e3
2 changed files with 5 additions and 5 deletions

View File

@ -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;
} }
}; }());

View File

@ -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() {