☕️ Classic, reliable, trusted test framework for Node.js and the browser
pending test
Tj Holowaychuk1cf5c807fe88
diff --git a/test/runnable.js b/test/runnable.jsindex 0bf59f35..0ead33ae 100644--- a/test/runnable.js+++ b/test/runnable.js@@ -34,6 +34,17 @@ describe('Runnable(title, fn)', function(){})describe('.run(fn)', function(){+ describe('when .pending', function(){+ it('should not invoke the callback', function(done){+ var test = new Runnable('foo', function(){+ throw new Error('should not be called');+ });++ test.pending = true;+ test.run(done);+ })+ })+describe('when sync', function(){describe('without error', function(){it('should invoke the callback', function(done){