Skip to content

Commit

Permalink
Add JSHint global declarations.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 16, 2014
1 parent 8c4f667 commit 2fa9260
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/promise/all.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use strict";
/*global it, describe, assert */

var failIfThrows = function (done) {
return function (e) { done(e || new Error()); };
Expand Down Expand Up @@ -184,5 +185,5 @@ describe("Promise.all", function () {
}).
then(done, failIfThrows(done));
});

});

2 changes: 2 additions & 0 deletions test/promise/evil-promises.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use strict";
/*global describe, specify, assert */

describe("Evil promises should not be able to break invariants", function () {
specify("resolving to a promise that calls onFulfilled twice", function (done) {
Expand All @@ -25,3 +26,4 @@ describe("Evil promises should not be able to break invariants", function () {
}).then(done, done);
});
});

3 changes: 3 additions & 0 deletions test/promise/promises-aplus.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/*global describe, require */

// tests from promises-aplus-tests
"use strict";

Expand All @@ -16,3 +18,4 @@ describe("Promises/A+ Tests", function () {
rejected: Promise.reject.bind(Promise)
});
});

3 changes: 2 additions & 1 deletion test/promise/promises-es6.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*global describe */

// tests from promises-es6-tests
/*global global, describe, require*/
(function () {
"use strict";

Expand Down
2 changes: 2 additions & 0 deletions test/promise/race.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use strict";
/*global describe, it, setTimeout, assert */

var failIfThrows = function (done) {
return function (e) { done(e || new Error()); };
Expand Down Expand Up @@ -76,3 +77,4 @@ describe("Promise.race", function () {
).then(done, failIfThrows(done));
});
});

3 changes: 3 additions & 0 deletions test/promise/simple.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"use strict";
/*global describe, specify, assert */


var failIfThrows = function (done) {
return function (e) { done(e || new Error()); };
Expand Down Expand Up @@ -47,3 +49,4 @@ describe("Promise", function () {
});
});
});

1 change: 1 addition & 0 deletions test/promise/subclass.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use strict";
/*global it, describe */

describe("Support user subclassing of Promise", function () {
it("should work if you do it right", function (done) {
Expand Down

0 comments on commit 2fa9260

Please sign in to comment.