Skip to content

Commit cf1d41a

Browse files
committed
Don't use arrow functions
1 parent 64c8ea9 commit cf1d41a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/testSetGCMAPIKey.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ suite('setGCMAPIKey', function() {
77
});
88

99
test('non-empty string', function() {
10-
assert.doesNotThrow(() => webPush.setGCMAPIKey('AIzaSyAwmdX6KKd4hPfIcGU2SOfj9vuRDW6u-wo'));
10+
assert.doesNotThrow(function() { webPush.setGCMAPIKey('AIzaSyAwmdX6KKd4hPfIcGU2SOfj9vuRDW6u-wo') });
1111
});
1212

1313
test('empty string', function() {
14-
assert.throws(() => webPush.setGCMAPIKey(''), Error);
14+
assert.throws(function() { webPush.setGCMAPIKey('') }, Error);
1515
});
1616

1717
test('non string', function() {
18-
assert.throws(() => webPush.setGCMAPIKey(42), Error);
18+
assert.throws(function() { webPush.setGCMAPIKey(42) }, Error);
1919
});
2020
});

0 commit comments

Comments
 (0)