forked from enviPath/enviPy
Current Dev State
This commit is contained in:
7
static/js/ketcher2/node_modules/insert-module-globals/test/always/custom_globals_without_defaults.js
generated
vendored
Normal file
7
static/js/ketcher2/node_modules/insert-module-globals/test/always/custom_globals_without_defaults.js
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
t.equal(eval('process'), 'sandbox process');
|
||||
t.equal(eval('typeof global'), 'undefined');
|
||||
t.equal(eval('self.xyz'), 555);
|
||||
t.equal(eval('Buffer'), 'sandbox Buffer');
|
||||
t.equal(eval('__filename'), 'sandbox __filename');
|
||||
t.equal(eval('__dirname'), 'sandbox __dirname');
|
||||
t.equal(eval('custom'), 'inserted custom');
|
||||
1
static/js/ketcher2/node_modules/insert-module-globals/test/always/hidden_from_quick_test.js
generated
vendored
Normal file
1
static/js/ketcher2/node_modules/insert-module-globals/test/always/hidden_from_quick_test.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
t.equal(eval('cust' + 'om'), eval('expected'));
|
||||
10
static/js/ketcher2/node_modules/insert-module-globals/test/always/main.js
generated
vendored
Normal file
10
static/js/ketcher2/node_modules/insert-module-globals/test/always/main.js
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
t.equal(eval('typeof process'), 'object');
|
||||
t.equal(eval('typeof process.nextTick'), 'function');
|
||||
t.equal(eval('typeof global'), 'object');
|
||||
t.equal(eval('global.xyz'), 555);
|
||||
t.equal(eval('typeof Buffer'), 'function');
|
||||
t.equal(eval('typeof __filename'), 'string');
|
||||
t.notEqual(eval('__filename'), 'sandbox __filename');
|
||||
t.equal(eval('typeof __dirname'), 'string');
|
||||
t.notEqual(eval('__dirname'), 'sandbox __dirname');
|
||||
t.equal(eval('custom'), 'sandbox custom');
|
||||
Reference in New Issue
Block a user