Skip to content

Commit

Permalink
chore: convert to js file
Browse files Browse the repository at this point in the history
  • Loading branch information
fenghan34 committed Aug 2, 2023
1 parent f6dccd4 commit 51d6c46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
* text=auto eol=lf

test/reporters/fixtures/indicator-position.test.ts eol=crlf
test/reporters/fixtures/indicator-position.test.js eol=crlf
6 changes: 3 additions & 3 deletions test/reporters/tests/indicator-position.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { resolve } from 'pathe'
import { runVitest } from '../../test-utils'

test('should print correct indicator position', async () => {
const filename = resolve('./fixtures/indicator-position.test.ts')
const filename = resolve('./fixtures/indicator-position.test.js')
const { stderr } = await runVitest({ root: './fixtures' }, [filename])
const code = readFileSync(filename, 'utf-8')

Expand All @@ -13,7 +13,7 @@ test('should print correct indicator position', async () => {
expect(stderr).toMatchInlineSnapshot(`
"⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
FAIL indicator-position.test.ts >
FAIL indicator-position.test.js >
AssertionError: expected 2 to be 3 // Object.is equality
- Expected
Expand All @@ -22,7 +22,7 @@ test('should print correct indicator position', async () => {
- 3
+ 2
❯ indicator-position.test.ts:12:17
❯ indicator-position.test.js:12:17
10|
11| test('', async () => {
12| expect(1 + 1).toBe(3)
Expand Down

0 comments on commit 51d6c46

Please sign in to comment.