Skip to content

Instantly share code, notes, and snippets.

@brianswisher
Created December 8, 2015 15:31
Show Gist options
  • Save brianswisher/42ac7fac4d19541fbcda to your computer and use it in GitHub Desktop.
Save brianswisher/42ac7fac4d19541fbcda to your computer and use it in GitHub Desktop.
Unit test
((assert, it)=>{
it("1 equals 1", function() {
return assert(1, 1);
});
})(
(value, expected)=>{ //assert
return value === expected;
},
(describe, test)=>{ //it
var result = test();
if (result) {
console.info(describe);
} else {
console.error(describe);
}
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment