Skip to content

Instantly share code, notes, and snippets.

@gregglind
Last active August 29, 2015 14:13
Show Gist options
  • Save gregglind/ff9ce0c2c3aeacc783b9 to your computer and use it in GitHub Desktop.
Save gregglind/ff9ce0c2c3aeacc783b9 to your computer and use it in GitHub Desktop.
Example of todo vs skip semantics re: https://github.com/mochajs/mocha/issues/1510
// license: Public Domain
//it.todo = it.skip;
it.todo = function (title, callback) {
return it.skip("TODO: " + title, callback)
}
describe("todo vs skip", function () {
it.skip("skipped test", function () {
// hard to test this without shims
});
it.todo("this test wants to be todo'd", function () {
// hard to test this without shims
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment