From 000dc55f3cdb4c1ac5fbc2700e9816727b3df05a Mon Sep 17 00:00:00 2001 From: Ni55aN Date: Sun, 21 Apr 2024 18:31:21 +0300 Subject: [PATCH] t --- src/index.js | 7 ++++++- tests/index.test.js | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 83c7d10..472e6cc 100644 --- a/src/index.js +++ b/src/index.js @@ -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 } \ No newline at end of file diff --git a/tests/index.test.js b/tests/index.test.js index 0aef01d..734089b 100644 --- a/tests/index.test.js +++ b/tests/index.test.js @@ -4,5 +4,6 @@ describe('a', () => { it('test', () => { // is function expect(a).toBeInstanceOf(Function) + expect(a()).toBeUndefined() }) }) \ No newline at end of file