Skip to content

Commit 4e77d05

Browse files
ysangkokFagnerMartinsBrack
authored andcommitted
Use strict mode in the tests
Closes js-cookiegh-288
1 parent 81e8c0b commit 4e77d05

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

test/.jshintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"qunit": true,
44

55
"-W053": true,
6+
"-W097": true, // disable warning for 'Use the function form of "use strict".'
67

78
"extends": "../.jshintrc",
89
"globals": {

test/tests.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
/*global lifecycle: true*/
24

35
QUnit.module('read', lifecycle);
@@ -402,7 +404,7 @@ QUnit.test('Object Constructor', function (assert) {
402404

403405
QUnit.test('Use String(value) for unsupported objects that do not stringify into JSON', function (assert) {
404406
assert.expect(2);
405-
Cookies.set('date', new Date(2015, 04, 13, 0, 0, 0, 0));
407+
Cookies.set('date', new Date(2015, 4, 13, 0, 0, 0, 0));
406408
assert.strictEqual(Cookies.get('date').indexOf('"'), -1, 'should not quote the stringified Date object');
407409
assert.strictEqual(Cookies.getJSON('date').indexOf('"'), -1, 'should not quote the stringified Date object');
408410
});

0 commit comments

Comments
 (0)