(builder)
| 29 | const fun3 = () => 3; |
| 30 | |
| 31 | function runAssertionsOnSandbox(builder) { |
| 32 | const sandboxContext = vm.createContext({ runAssertions, fun1, fun2, fun3 }); |
| 33 | vm.runInContext(builder('this'), sandboxContext); |
| 34 | vm.runInContext(builder('{}'), sandboxContext); |
| 35 | } |
| 36 | |
| 37 | // Assertions on: define property |
| 38 | runAssertions(contextGlobal, 'toto', true, 1, 2, 3); |
no test coverage detected