Permalink
Browse files

fixed tests for the node 0.4

  • Loading branch information...
1 parent 0cd1cef commit ccf573a98018db9c3d0b87d0113320d189d88b21 @podviaznikov committed Feb 14, 2011
Showing with 6 additions and 5 deletions.
  1. +6 −5 tests/tests.js
View
@@ -1,17 +1,18 @@
-var torrent = require('../torrent.js').create();
-exports.testFakeItem = function(assert)
+var torrent = require('../torrent.js').create(),
+ assert = require('assert');
+exports.testFakeItem = function()
{
torrent.find({ihq:'dssadjaskdjaskjdksajdkasjdsajdkasdjaskdjkas'},function(data)
{
assert.equal(0,data.total_results);
});
};
-exports.testFindFirstMovieItem = function(assert)
+exports.testFindFirstMovieItem = function()
{
torrent.find({ihq:'Inception',rows:1},function(data)
{
- assert.length(data.items.list,1);
+ assert.equal(data.items.list.length,1);
var movieItem = data.items.list[0];
assert.match(movieItem.title,/Inception/)
});
-};
+};

0 comments on commit ccf573a

Please sign in to comment.