Skip to content

Commit f44db82

Browse files
Merge branch 'main' into caleb/fix/this
2 parents 9ddda1a + d8023ba commit f44db82

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/js/eval-test.simple

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
*/
88
'use strict';
99

10-
const result = python.eval(`pm.eval(open("${__dirname}/resources/eval-test.js", "rb"))`);
10+
python.exec(`
11+
import os
12+
13+
globalThis = pm.eval('globalThis')
14+
globalThis.result = pm.eval(open(os.path.join(os.getcwd(), "tests", "js", "resources", "eval-test.js"), "rb"))
15+
`)
16+
1117
if (result !== 18436572)
1218
throw new Error('incorrect result from eval-test.js');

0 commit comments

Comments
 (0)