Skip to content

Commit 5ca6b62

Browse files
committed
Add tests
1 parent 27926fa commit 5ca6b62

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

tests/basicFile.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
interface Foo {
2+
bar: number
3+
}
4+
5+
export const foo: Foo = { bar: 1 }

tests/reactFile.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import React from 'react'
2+
3+
// This is a Button component
4+
export const Button = () => {
5+
return <div>Foo Bar</div>
6+
}

tests/tokenFile.jsonc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
// This is foo.
3+
"foo": "bar"
4+
}

0 commit comments

Comments
 (0)