Skip to content

Instantly share code, notes, and snippets.

@marcelmokos
Last active November 8, 2018 23:34
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save marcelmokos/fe0254b415befcf91d8814bae4a35c15 to your computer and use it in GitHub Desktop.
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