aboutsummaryrefslogtreecommitdiff
path: root/node_modules/vm-browserify/test
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-03-27 21:01:33 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-03-27 21:01:33 +0100
commitcc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 (patch)
tree92c5d88706a6ffc654d1b133618d357890e7096b /node_modules/vm-browserify/test
parent3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff)
remove node_modules
Diffstat (limited to 'node_modules/vm-browserify/test')
-rw-r--r--node_modules/vm-browserify/test/vm.js35
1 files changed, 0 insertions, 35 deletions
diff --git a/node_modules/vm-browserify/test/vm.js b/node_modules/vm-browserify/test/vm.js
deleted file mode 100644
index ea8cd31be..000000000
--- a/node_modules/vm-browserify/test/vm.js
+++ /dev/null
@@ -1,35 +0,0 @@
-var test = require('tape');
-var vm = require('../');
-
-test('vmRunInNewContext', function (t) {
- t.plan(6);
-
- t.equal(vm.runInNewContext('a + 5', { a : 100 }), 105);
-
- (function () {
- var vars = { x : 10 };
- t.equal(vm.runInNewContext('x++', vars), 10);
- t.equal(vars.x, 11);
- })();
-
- (function () {
- 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();
-});
-
-test('vmRunInContext', function (t) {
- t.plan(2);
-
- var context = vm.createContext({ foo: 1 });
-
- vm.runInContext('var x = 1', context);
- t.deepEqual(context, { foo: 1, x: 1 });
-
- vm.runInContext('var y = 1', context);
- t.deepEqual(context, { foo: 1, x: 1, y: 1 });
-});