Last active
August 29, 2015 14:13
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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