Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release-src > by-pkgid > b25063e231d1765181d2bbd746cb80b9 > files > 3

nodejs-callsite-1.0.0-1.mga5.src.rpm

From 380e629a8c3a647fb59e17b4c6fa3e489075a605 Mon Sep 17 00:00:00 2001
From: "T.C. Hollingsworth" <tchollingsworth@gmail.com>
Date: Sun, 2 Jun 2013 22:40:27 -0700
Subject: [PATCH] fix test

---
 test/__stack.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/test/__stack.js b/test/__stack.js
index fb3fa5d..94caa47 100644
--- a/test/__stack.js
+++ b/test/__stack.js
@@ -3,7 +3,7 @@
  * Module dependencies.
  */
 
-require('../');
+var stack = require('..');
 
 describe('__stack', function(){
   it('should return an array of CallSites', function(){
@@ -18,14 +18,14 @@ describe('__stack', function(){
     }
 
     function baz() {
-      __stack[0].fun.should.equal(baz);
-      __stack[1].fun.should.equal(bar);
-      __stack[2].fun.should.equal(foo);
+      stack()[0].fun.should.equal(baz);
+      stack()[1].fun.should.equal(bar);
+      stack()[2].fun.should.equal(foo);
     }
   })
 
   it('should restore stack preparation', function(){
-    __stack;
+    stack();
     new Error().stack.should.be.a('string');
   })
 })
\ No newline at end of file
-- 
1.8.2.1