Skip to content

Instantly share code, notes, and snippets.

@matheusml
Created May 5, 2020 15:05
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matheusml/e2e680f69d478226a71b8a2db48aa735 to your computer and use it in GitHub Desktop.
Save matheusml/e2e680f69d478226a71b8a2db48aa735 to your computer and use it in GitHub Desktop.
function describe(description, callback) {
console.log(description);
callback();
}
function it(description, callback) {
console.log(description);
callback();
}
function expect(left) {
return {
toBe(right) {
if (left !== right) {
console.log(` expected "${left}" to be "${right}"`);
}
},
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment