From a1b59cba348b6c80daffb0b58a443d5307b249f0 Mon Sep 17 00:00:00 2001 From: Haidang666 Date: Fri, 7 Jan 2022 13:59:47 +0700 Subject: [PATCH] remove deprecated method: String.substr --- test/test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.ts b/test/test.ts index b53879b..3d72c34 100644 --- a/test/test.ts +++ b/test/test.ts @@ -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(