Permalink
Browse files

Added loop unit tests

  • Loading branch information...
tommy351 committed Sep 4, 2012
1 parent 5f31c2a commit 47b9988ae36c4b68a39da80453de5911a02c62be
Showing with 21 additions and 0 deletions.
  1. +21 −0 test/loop.js
View
@@ -0,0 +1,21 @@
+var qfs = require('..'),
+ dirname = __dirname,
+ children = qfs(dirname);
+
+describe('Loop', function(){
+ it('each()', function(done){
+ children.each(function(){
+ this.should.be.an.instanceof(qfs);
+ });
+
+ done();
+ });
+
+ it('map()', function(done){
+ children.map(function(){
+ this.should.be.an.instanceof(qfs);
+ });
+
+ done();
+ });
+});

0 comments on commit 47b9988

Please sign in to comment.