Skip to content

Commit

Permalink
very forcibly deprecate Test.current()
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jan 26, 2017
1 parent 5061989 commit 73190d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/test.js
Expand Up @@ -85,6 +85,10 @@ function Test (options) {
bindObj(this, Test.prototype, bound)
}

Test.prototype.current = function () {
throw new Error('Test.current() as been removed and is no more')
}

Test.prototype.spawn = function spawn (cmd, args, options, name) {
if (typeof args === 'string') {
args = [ args ]
Expand Down
4 changes: 4 additions & 0 deletions test/test-test.js
Expand Up @@ -156,3 +156,7 @@ t.test('test-point', function (t) {

t.end()
})

t.throws(function () {
t.current()
}, new Error('Test.current() as been removed and is no more'))

0 comments on commit 73190d6

Please sign in to comment.