Created
March 28, 2020 15:50
-
-
Save jsmanifest/4e3ff5b1f0c095870795c6f242ce717e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hasTest(testDir) { | |
for (let index = 0; index < testDir.length; index++) { | |
const filename = testDir[index] | |
if (filename.endsWith('.test.js')) { | |
return true | |
} | |
} | |
return false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment