mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-08 20:47:02 +03:00
remove deprecated method: String.substr
This commit is contained in:
@@ -40,7 +40,7 @@ async function init() {
|
|||||||
fs.readdirSync(testDir)
|
fs.readdirSync(testDir)
|
||||||
.filter((file) =>
|
.filter((file) =>
|
||||||
// Only keep the .ts files
|
// Only keep the .ts files
|
||||||
file.substr(-3) === ".ts"
|
file.slice(-3) === ".ts"
|
||||||
)
|
)
|
||||||
.forEach(function(file) {
|
.forEach(function(file) {
|
||||||
mocha.addFile(
|
mocha.addFile(
|
||||||
|
|||||||
Reference in New Issue
Block a user