diff --git a/src/index.js b/src/index.js index 87e73cc..8fa2391 100644 --- a/src/index.js +++ b/src/index.js @@ -1 +1 @@ -export const undefined = () => {}; +export const undefined = () => undefined; diff --git a/src/index.test.js b/src/index.test.js index ae0417a..8143725 100644 --- a/src/index.test.js +++ b/src/index.test.js @@ -4,4 +4,7 @@ describe('undefined is not a function?', () => { test('it is now', () => { expect(typeof undefined).toBe('function'); }); + test('it should return itself', () => { + expect(undefined()).toBe(undefined); + }); });