Skip to content

Commit

Permalink
drop incorrect skip test implementation
Browse files Browse the repository at this point in the history
can add it back correctly when #9 is resolved
  • Loading branch information
sindresorhus committed Sep 8, 2015
1 parent b370dd5 commit 5662d9f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
6 changes: 1 addition & 5 deletions lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ Test.prototype.plan = function (count) {
this.planStack = new Error().stack;
};

Test.prototype.skip = function () {
this.skipTest = true;
};

Test.prototype.run = function () {
this.promise = {};

Expand All @@ -79,7 +75,7 @@ Test.prototype.run = function () {
this.promise.resolve = resolve;
this.promise.reject = reject;

if (!this.fn || this.skipTest) {
if (!this.fn) {
return this.exit();
}

Expand Down
11 changes: 0 additions & 11 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,17 +284,6 @@ test('run serial tests before concurrent ones', function (t) {
});
});

test.skip('skip test with `.skip()`', function (t) {
ava(function (a) {
a.skip();
a.pass();
a.end();
}).run().then(function (a) {
t.is(a.assertCount, 0);
t.end();
});
});

function promisePass() {
return new Promise(function (resolve) {
setImmediate(resolve);
Expand Down

0 comments on commit 5662d9f

Please sign in to comment.