Skip to content

Commit

Permalink
- update test spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepenz committed Nov 28, 2024
1 parent d0dd48d commit 5808485
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions __tests__/testParser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,17 @@ note: run with `RUST_BACKTRACE=1` environment variable to display

describe('resolvePath', () => {
it('should find correct file for Java fileName', async () => {
const path = await resolvePath('EmailAddressTest', ['/build/', '/__pycache__/'])
const path = await resolvePath('', 'EmailAddressTest', ['/build/', '/__pycache__/'])
expect(path).toBe('test_results/tests/email/src/test/java/action/surefire/report/email/EmailAddressTest.java')
})

it('should find correct file for Kotlin fileName', async () => {
const path = await resolvePath('CalcUtilsTest', ['/build/', '/__pycache__/'])
const path = await resolvePath('', 'CalcUtilsTest', ['/build/', '/__pycache__/'])
expect(path).toBe('test_results/tests/utils/src/test/java/action/surefire/report/calc/CalcUtilsTest.kt')
})

it('should find correct file with a relative path', async () => {
const path = await resolvePath('./test_results/CalcUtilsTest.kt', ['/build/', '/__pycache__/'])
const path = await resolvePath('', './test_results/CalcUtilsTest.kt', ['/build/', '/__pycache__/'])
expect(path).toBe('test_results/CalcUtilsTest.kt')
})
})
Expand Down

0 comments on commit 5808485

Please sign in to comment.