Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a test for chaining JAMs checking that nested context doesn't c…

…onflicts.
  • Loading branch information...
commit e00e462005776509e3dc746772b6c6df8f324a47 1 parent e9e5503
@chakrit authored
Showing with 18 additions and 0 deletions.
  1. +18 −0 test-multi.js
View
18 test-multi.js
@@ -0,0 +1,18 @@
+
+// test-multi.js - Test multiple nested JAMs
+(function() {
+
+ var jam = require('./jam')
+ , util = require('util');
+
+ jam(function() {
+ jam(function() {
+ jam(function() { util.log("JAM! THREE"); this(); })
+ (function() { util.log("JAM! FOUR"); this(); })
+ (function() { util.log("JAM! FIVE"); this(); });
+ })
+ (function() { util.log("JAM! ONE"); this(); })
+ (function() { util.log("JAM! TWO"); this(); });
+ });
+
+})();
Please sign in to comment.
Something went wrong with that request. Please try again.