Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
Ni55aN committed Apr 21, 2024
1 parent 6222b08 commit 000dc55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
function a() {
console.log('a', eval(window.data));
}
function b() {
console.log('a', eval(window.data));
}


module.exports = {
a
a,
b
}
1 change: 1 addition & 0 deletions tests/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ describe('a', () => {
it('test', () => {
// is function
expect(a).toBeInstanceOf(Function)
expect(a()).toBeUndefined()
})
})

0 comments on commit 000dc55

Please sign in to comment.