()
| 47 | } |
| 48 | |
| 49 | function testResetGlobal() { |
| 50 | const { replServer } = startNewREPLServer({ useGlobal: true }); |
| 51 | replServer.context.foo = 42; |
| 52 | replServer.on('reset', common.mustCall(function(context) { |
| 53 | assert.strictEqual( |
| 54 | context.foo, |
| 55 | 42, |
| 56 | '"foo" property is different from REPL using global as context. ' + |
| 57 | `context.foo is ${context.foo}, expected 42.` |
| 58 | ); |
| 59 | })); |
| 60 | replServer.resetContext(); |
| 61 | } |
| 62 | |
| 63 | testReset(common.mustCall(testResetGlobal)); |
nothing calls this directly
no test coverage detected