Skip to content

Commit

Permalink
fix tests on ts 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed May 3, 2020
1 parent 023c5d1 commit 0c31516
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/esm-node-resolver/bar/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const bar = 'bar' as const
export const bar: string = 'bar'

if(typeof module !== 'undefined') throw new Error('module should not exist in ESM')
2 changes: 1 addition & 1 deletion tests/esm-node-resolver/foo.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const foo = 'foo' as const
export const foo: string = 'foo'

if(typeof module !== 'undefined') throw new Error('module should not exist in ESM')
2 changes: 1 addition & 1 deletion tests/esm/bar.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const bar = 'bar' as const
export const bar: string = 'bar'

if(typeof module !== 'undefined') throw new Error('module should not exist in ESM')
2 changes: 1 addition & 1 deletion tests/esm/foo.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const foo = 'foo' as const
export const foo: string = 'foo'

if(typeof module !== 'undefined') throw new Error('module should not exist in ESM')

0 comments on commit 0c31516

Please sign in to comment.