Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

another test works fine

  • Loading branch information...
commit f38b99740f0a978d46c3843aa6b29103300cf97a 1 parent fe18a48
@substack authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  test/vm.js
View
3  test/vm.js
@@ -2,7 +2,7 @@ var test = require('tape');
var vm = require('../');
test('vmRunInNewContext', function (t) {
- t.plan(5);
+ t.plan(6);
t.equal(vm.runInNewContext('a + 5', { a : 100 }), 105);
@@ -16,6 +16,7 @@ test('vmRunInNewContext', function (t) {
var vars = { x : 10 };
t.equal(vm.runInNewContext('var y = 3; y + x++', vars), 13);
t.equal(vars.x, 11);
+ t.equal(vars.y, 3);
})();
t.end();
Please sign in to comment.
Something went wrong with that request. Please try again.