Skip to content

Commit

Permalink
Lint: fix no-unused-vars warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fargies committed Apr 13, 2018
1 parent 41fe763 commit cc2bdf6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/unit/throw.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ describe('a test that throws', function () {

describe('extensible', function () {
it('should not crash if throwing non-extensible type', function (done) {
/* eslint-disable-next-line no-unused-vars */
var test = new Test('im async and throw string async', function (done2) {
process.nextTick(function () {
throw 'error';
Expand Down Expand Up @@ -60,6 +61,7 @@ describe('a test that throws', function () {
});

it('should not pass if throwing sync and test is async', function (done) {
/* eslint-disable-next-line no-unused-vars */
var test = new Test('im async and throw undefined sync', function (done2) {
throw undefined;
});
Expand All @@ -74,6 +76,7 @@ describe('a test that throws', function () {
});

it('should not pass if throwing async and test is async', function (done) {
/* eslint-disable-next-line no-unused-vars */
var test = new Test('im async and throw undefined async', function (done2) {
process.nextTick(function () {
throw undefined;
Expand Down Expand Up @@ -106,6 +109,7 @@ describe('a test that throws', function () {
});

it('should not pass if throwing sync and test is async', function (done) {
/* eslint-disable-next-line no-unused-vars */
var test = new Test('im async and throw null sync', function (done2) {
throw null;
});
Expand All @@ -120,6 +124,7 @@ describe('a test that throws', function () {
});

it('should not pass if throwing async and test is async', function (done) {
/* eslint-disable-next-line no-unused-vars */
var test = new Test('im async and throw null async', function (done2) {
process.nextTick(function () {
throw null;
Expand Down

0 comments on commit cc2bdf6

Please sign in to comment.