doc,tools,test: lint doc-based addon tests
PR-URL: https://github.com/nodejs/node/pull/5427 Fixes: https://github.com/nodejs/node/issues/5424 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
This commit is contained in:
parent
c98d159ed3
commit
3e3d941495
@ -70,6 +70,12 @@ function verifyFiles(files, blockName, onprogress, ondone) {
|
||||
);
|
||||
|
||||
files = Object.keys(files).map(function(name) {
|
||||
if (name === 'test.js') {
|
||||
files[name] = `'use strict';
|
||||
require('../../common');
|
||||
${files[name]}
|
||||
`;
|
||||
}
|
||||
return {
|
||||
path: path.resolve(dir, name),
|
||||
name: name,
|
||||
|
Loading…
x
Reference in New Issue
Block a user