diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2015-06-01 23:25:38 +0200 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2015-06-13 23:08:19 +0200 |
commit | 9c8a3ecdc46156afd8f93aa44b6e6aea7c52c049 (patch) | |
tree | 26b603faca914b16540ac8ebdd269ec86683ede1 /build | |
parent | 1556c4661af647e355a9a5c0a814012955e231bc (diff) | |
download | jquery-9c8a3ecdc46156afd8f93aa44b6e6aea7c52c049.tar.gz jquery-9c8a3ecdc46156afd8f93aa44b6e6aea7c52c049.zip |
Build: Refactor Node smoke tests
Utilize the assert module, avoid inline JSHint comments.
Diffstat (limited to 'build')
-rw-r--r-- | build/tasks/node_smoke_tests.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build/tasks/node_smoke_tests.js b/build/tasks/node_smoke_tests.js index 077745b83..5c23dae2b 100644 --- a/build/tasks/node_smoke_tests.js +++ b/build/tasks/node_smoke_tests.js @@ -15,7 +15,8 @@ module.exports = function( grunt ) { fs.readdirSync( testsDir ) .filter( function( testFilePath ) { - return fs.statSync( testsDir + testFilePath ).isFile(); + return fs.statSync( testsDir + testFilePath ).isFile() && + /\.js$/.test( testFilePath ); } ) .forEach( function( testFilePath ) { var taskName = "node_" + testFilePath.replace( /\.js$/, "" ); |