Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const undefined = () => {};
export const undefined = () => undefined;
3 changes: 3 additions & 0 deletions src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});