mirror of
https://github.com/dorny/test-reporter.git
synced 2026-03-22 07:52:14 +01:00
Use String.substring() function instead of the deprecated String.substr()
This commit is contained in:
parent
ff2d13cc36
commit
17c900ba4e
9 changed files with 12 additions and 12 deletions
|
|
@ -55,7 +55,7 @@ export class RspecJsonParser implements TestParser {
|
|||
private processTest(suite: TestSuiteResult, test: RspecExample, result: TestExecutionResult): void {
|
||||
const groupName =
|
||||
test.full_description !== test.description
|
||||
? test.full_description.substr(0, test.full_description.length - test.description.length).trimEnd()
|
||||
? test.full_description.substring(0, test.full_description.length - test.description.length).trimEnd()
|
||||
: null
|
||||
|
||||
let group = suite.groups.find(grp => grp.name === groupName)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue