nodejs-proxyquire/nodejs-proxyquire-helloworld.patch
2023-11-02 17:27:44 +08:00

32 lines
811 B
Diff

commit c0121c386f613d4db744159d875ebfccc345c778
Author: Tom Hughes <tom@compton.nu>
Date: Fri Jan 27 00:27:02 2017 +0000
Drop test that needs native-hello-world
diff --git a/test/proxyquire-global.js b/test/proxyquire-global.js
index e09fce6..29999df 100644
--- a/test/proxyquire-global.js
+++ b/test/proxyquire-global.js
@@ -37,17 +37,6 @@ describe('global flags set', function () {
assert.strictEqual(realFoo(), false)
assert.strictEqual(proxiedFoo(), true)
})
-
- it('should not throw when a native module is required a second time', function () {
- var stubs = {
- foo: {
- '@global': true
- }
- }
-
- proxyquire('native-hello-world', stubs)
- proxyquire('native-hello-world', stubs)
- })
})
describe('global flags not set', function () {
--
2.33.0