fix(java-junit): stack trace line can start with whitespaces

Fixes #208
This commit is contained in:
Ats Uiboupin 2022-11-19 19:53:14 +02:00
parent e5edb614dd
commit 3a48f6e045
No known key found for this signature in database
GPG key ID: E191BE89059ADCF0
2 changed files with 10 additions and 1 deletions

View file

@ -25,6 +25,15 @@ describe('parseStackTraceLine tests', () => {
lineStr: '29'
})
})
it('starts with whitespaces', async () => {
const line = " \tat org.apache.pulsar.AddMissingPatchVersionTest.testVersionStrings(AddMissingPatchVersionTest.java:29)"
expect(parseStackTraceElement(line)).toEqual({
tracePath: "org.apache.pulsar.AddMissingPatchVersionTest.testVersionStrings",
fileName: "AddMissingPatchVersionTest.java",
lineStr: "29"
})
})
})
describe('Kotlin class', () => {