Skip to content

Instantly share code, notes, and snippets.

@muhamed-didovic
Forked from JeffreyWay/meThinks.js
Last active August 29, 2015 14:11
Show Gist options
  • Save muhamed-didovic/9719cc3afbadf51c359d to your computer and use it in GitHub Desktop.
Save muhamed-didovic/9719cc3afbadf51c359d to your computer and use it in GitHub Desktop.
function meThinks(assertion) {
return {
shouldEqual: function(bool) {
if ( assertion !== bool ) {
throw new Error('FAIL');
}
}
};
}
meThinks(2 + 2).shouldEqual(4);
meThinks(typeof(jQuery)).shouldEqual('function');
console.log('All tests passed');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment