Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Not testable
function tomorrowDate() {
const date = new Date();
date.setDate(date.getDate() + 1);
return date;
}
it("Test tomorrowDate function", () => {
expect(tomorrowDate()).toBe(/* ¯\_(ツ)_/¯ - it is imposible to test the function */)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment