Permalink
Browse files

failing string sync test

  • Loading branch information...
1 parent e92b60a commit 71c641068e741b67ff6a65dcd127078a0c586bed @substack committed Dec 4, 2011
Showing with 15 additions and 0 deletions.
  1. +15 −0 test/transform.js
View
@@ -17,6 +17,21 @@ test('sync', function (t) {
});
});
+test('string sync', function (t) {
+ var pending = 20;
+ t.plan(pending * 2);
+
+ var sync = 'function (doc) {'
+ + 'return { x : (doc.a || doc.b) + doc.c }'
+ + '}'
+ ;
+
+ check(t, sync, function end () {
+ if (--pending === 0) t.end()
+ else check(t, sync, end)
+ });
+});
+
test('async', function (t) {
var pending = 20;
t.plan(pending * 2);

0 comments on commit 71c6410

Please sign in to comment.