Merge pull request #445 from HaiDang666/substr-deprecated

remove deprecated method: String.substr
This commit is contained in:
Ajay Ramachandran
2022-01-07 02:19:05 -05:00
committed by GitHub

View File

@@ -40,7 +40,7 @@ async function init() {
fs.readdirSync(testDir)
.filter((file) =>
// Only keep the .ts files
file.substr(-3) === ".ts"
file.slice(-3) === ".ts"
)
.forEach(function(file) {
mocha.addFile(