mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 15:06:33 +01:00
test: load common.js in all tests
common.js contains code that detects leaked variables. In preparation for an eslint rule that will enforce loading common.js in test files, load it everywhere it can be loaded and use an `eslint-disable` comment for files that intentionally leak. PR-URL: https://github.com/nodejs/node/pull/3157 Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
dbce29a3ac
commit
c78091d689
@ -1,4 +1,5 @@
|
||||
'use strict';
|
||||
require('../../common');
|
||||
var assert = require('assert');
|
||||
var binding = require('./build/Release/binding');
|
||||
var called = false;
|
||||
|
@ -1,2 +1,3 @@
|
||||
'use strict';
|
||||
require('../../common');
|
||||
var binding = require('./build/Release/binding');
|
||||
|
@ -1,5 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
require('../../common');
|
||||
|
||||
const binding = require('./build/Release/binding');
|
||||
|
||||
// Create an AsyncWrap object.
|
||||
|
@ -1,4 +1,5 @@
|
||||
'use strict';
|
||||
require('../../common');
|
||||
var assert = require('assert');
|
||||
var binding = require('./build/Release/binding');
|
||||
assert.equal('world', binding());
|
||||
|
@ -1,4 +1,5 @@
|
||||
'use strict';
|
||||
require('../../common');
|
||||
var assert = require('assert');
|
||||
var binding = require('./build/Release/binding');
|
||||
assert.equal('world', binding.hello());
|
||||
|
@ -1,4 +1,5 @@
|
||||
'use strict';
|
||||
require('../../common');
|
||||
var assert = require('assert');
|
||||
var repl = require('repl');
|
||||
var stream = require('stream');
|
||||
|
@ -1,4 +1,5 @@
|
||||
'use strict';
|
||||
require('../common');
|
||||
var repl = require('./helper-debugger-repl.js');
|
||||
|
||||
repl.startDebugger('break-in-module/main.js');
|
||||
|
@ -1,4 +1,5 @@
|
||||
'use strict';
|
||||
require('../common');
|
||||
var repl = require('./helper-debugger-repl.js');
|
||||
|
||||
repl.startDebugger('breakpoints.js');
|
||||
|
@ -1,4 +1,5 @@
|
||||
'use strict';
|
||||
require('../common');
|
||||
process.env.NODE_FORCE_READLINE = 1;
|
||||
|
||||
var repl = require('./helper-debugger-repl.js');
|
||||
|
@ -1,4 +1,5 @@
|
||||
'use strict';
|
||||
require('../common');
|
||||
var repl = require('./helper-debugger-repl.js');
|
||||
|
||||
repl.startDebugger('breakpoints.js');
|
||||
|
Loading…
Reference in New Issue
Block a user