Skip to content

Commit

Permalink
Tests: Fix check of standard Promise availability
Browse files Browse the repository at this point in the history
  • Loading branch information
tabalinas committed Nov 1, 2016
1 parent 6f2698a commit a821f01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/jsgrid.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -2679,8 +2679,9 @@ $(function() {
});

asyncTest("should support JS promise success callback", 1, function() {
if(!Promise) {
if(typeof Promise === "undefined") {
ok(true, "Promise not supported");
start();
return;
}

Expand Down Expand Up @@ -2708,8 +2709,9 @@ $(function() {
});

asyncTest("should support JS promise fail callback", 1, function() {
if(!Promise) {
if(typeof Promise === "undefined") {
ok(true, "Promise not supported");
start();
return;
}

Expand Down

0 comments on commit a821f01

Please sign in to comment.