Skip to content

Commit

Permalink
fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorFiNE committed May 27, 2012
1 parent 49e434c commit 0c88fad
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/node-compress-buffer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,11 @@ exports['errors']= function(test) {
var compressed = compress(new Buffer(""));
test.ok(compressed.length>=0);

var uncompressed = uncompress(new Buffer(" sfsdcfgdfgsdgfdsgdgdsgdfgsdfgsdfgdfgfsfd "));
test.ok(!uncompressed);
try {
uncompress(new Buffer(" sfsdcfgdfgsdgfdsgdgdsgdfgsdfgsdfgdfgfsfd "));
} catch (e) {
test.ok(true);
}

test.done();
}

0 comments on commit 0c88fad

Please sign in to comment.