Skip to content

Commit

Permalink
Fixed failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
devconcept committed Apr 23, 2017
1 parent 7f01e44 commit 291c784
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/gridfsstorage.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ describe('GridFS storage', function () {
.end(function (err, res) {
result = res.body;
fs.readFile(uploads.files[0], function (err, f) {
size = f.byteLength;
size = f.length;
done();
});
});
Expand Down Expand Up @@ -245,7 +245,6 @@ describe('GridFS storage', function () {
});

it('should have a size property with the length of the file', function () {
console.log(result.file);
expect(result.file).to.have.a.property('size');
expect(result.file.size).to.equal(size);
});
Expand Down

0 comments on commit 291c784

Please sign in to comment.