Skip to content

Commit 9d65d10

Browse files
committed
add test
1 parent 936c373 commit 9d65d10

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { foo } from './internal/index.js'
2+
3+
it('should correctly rename imports', () => {
4+
expect(foo({})).toBe(true)
5+
})
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import './patch-other.js'
2+
import { patch as patch2 } from './patch.js'
3+
4+
export const bar = (patch) => patch + 1
5+
export const foo = (patch) => patch !== patch2
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export function patch() {
2+
return 2
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export function patch() {
2+
return 1
3+
}

0 commit comments

Comments
 (0)