Skip to content

Commit b1ae58b

Browse files
committed
test: move .tcx fixtures to fixtures/tcx and update test references
1 parent 6cdde72 commit b1ae58b

File tree

12 files changed

+7
-5
lines changed

12 files changed

+7
-5
lines changed

src/bin/tcx2webvtt.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ describe('tcx2webvtt CLI', () => {
7171
})
7272

7373
it('should convert TCX to WebVTT and output to stdout', async () => {
74-
const fixtureFile = join(__dirname, '../../fixtures/concept2.tcx')
74+
const fixtureFile = join(__dirname, '../../fixtures/tcx/concept2.tcx')
7575
mockProcess.argv.push(fixtureFile)
7676

7777
await main(mockProcess)
@@ -84,7 +84,7 @@ describe('tcx2webvtt CLI', () => {
8484
})
8585

8686
it('should handle invalid TCX files', async () => {
87-
const invalidXmlFile = join(__dirname, '../../fixtures/invalid.tcx')
87+
const invalidXmlFile = join(__dirname, '../../fixtures/tcx/invalid.tcx')
8888

8989
mockProcess.argv.push(invalidXmlFile)
9090

@@ -96,7 +96,7 @@ describe('tcx2webvtt CLI', () => {
9696

9797
it('should handle TCX files with no trackpoints', async () => {
9898
// Use the fixture with no activities
99-
const fixtureFile = join(__dirname, '../../fixtures/no-activities.tcx')
99+
const fixtureFile = join(__dirname, '../../fixtures/tcx/no-activities.tcx')
100100

101101
mockProcess.argv.push(fixtureFile)
102102

0 commit comments

Comments
 (0)