diff options
author | 2020-11-18 23:26:45 +0100 | |
---|---|---|
committer | 2020-11-18 23:26:45 +0100 | |
commit | 81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (patch) | |
tree | 8b959d50c5a614cbf9fcb346ed556140374d4b6d /node_modules/vm-browserify/test | |
parent | 1870f3fdf43707a15fda0f609a021f516f45eb63 (diff) | |
download | website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2 website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip |
rm node_modules
Diffstat (limited to 'node_modules/vm-browserify/test')
-rw-r--r-- | node_modules/vm-browserify/test/vm.js | 35 |
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 ea8cd31..0000000 --- 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 }); -}); |