Skip to content

Commit 939e3fd

Browse files
committed
Consistent formatting.
1 parent 81dd6a1 commit 939e3fd

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

‎test/tests.js‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ test('invalid URL encoding', function () {
113113
document.cookie = 'bad=foo'; // Allow to be deleted...
114114
});
115115

116-
asyncTest('malformed cookie value in IE (#88, #117)', function() {
116+
asyncTest('malformed cookie value in IE (#88, #117)', function () {
117117
expect(1);
118118
// Sandbox in an iframe so that we can poke around with document.cookie.
119119
var iframe = $('<iframe src="malformed_cookie.html"></iframe>')[0];
120-
$(iframe).on('load', function() {
120+
$(iframe).on('load', function () {
121121
start();
122122
if (iframe.contentWindow.ok) {
123123
strictEqual(iframe.contentWindow.testValue, 'two', 'reads all cookie values, skipping duplicate occurences of "; "');
@@ -131,23 +131,23 @@ asyncTest('malformed cookie value in IE (#88, #117)', function() {
131131
document.body.appendChild(iframe);
132132
});
133133

134-
test('Call to read all when there are cookies', function() {
134+
test('Call to read all when there are cookies', function () {
135135
$.cookie('c', 'v');
136136
$.cookie('foo', 'bar');
137137
deepEqual($.cookie(), { c: 'v', foo: 'bar' }, 'returns object containing all cookies');
138138
});
139139

140-
test('Call to read all when there are no cookies at all', function() {
140+
test('Call to read all when there are no cookies at all', function () {
141141
deepEqual($.cookie(), {}, 'returns empty object');
142142
});
143143

144-
test('Call to read all with json: true', function() {
144+
test('Call to read all with json: true', function () {
145145
$.cookie.json = true;
146146
$.cookie('c', { foo: 'bar' });
147147
deepEqual($.cookie(), { c: { foo: 'bar' } }, 'returns JSON parsed cookies');
148148
});
149149

150-
test('Call to read all with a badly encoded cookie', function() {
150+
test('Call to read all with a badly encoded cookie', function () {
151151
expect(1);
152152
document.cookie = 'bad=foo%';
153153
document.cookie = 'good=foo';
@@ -181,15 +181,15 @@ test('number', function () {
181181
strictEqual($.cookie('c'), '1234', 'should write value');
182182
});
183183

184-
test('expires option as days from now', function() {
184+
test('expires option as days from now', function () {
185185
expect(1);
186186
var sevenDaysFromNow = new Date();
187187
sevenDaysFromNow.setDate(sevenDaysFromNow.getDate() + 7);
188188
strictEqual($.cookie('c', 'v', { expires: 7 }), 'c=v; expires=' + sevenDaysFromNow.toUTCString(),
189189
'should write the cookie string with expires');
190190
});
191191

192-
test('expires option as Date instance', function() {
192+
test('expires option as Date instance', function () {
193193
expect(1);
194194
var sevenDaysFromNow = new Date();
195195
sevenDaysFromNow.setDate(sevenDaysFromNow.getDate() + 7);
@@ -231,27 +231,27 @@ test('json = true', function () {
231231

232232
module('removeCookie', lifecycle);
233233

234-
test('deletion', function() {
234+
test('deletion', function () {
235235
expect(1);
236236
$.cookie('c', 'v');
237237
$.removeCookie('c');
238238
strictEqual(document.cookie, '', 'should delete the cookie');
239239
});
240240

241-
test('return', function() {
241+
test('return', function () {
242242
expect(2);
243243
strictEqual($.removeCookie('c'), false, "return false if the cookie wasn't found");
244244

245245
$.cookie('c', 'v');
246246
strictEqual($.removeCookie('c'), true, 'return true if the cookie was found');
247247
});
248248

249-
test('with options', function() {
249+
test('with options', function () {
250250
expect(3);
251251
var originalCookie = $.cookie;
252252
var callCount = 0;
253253

254-
$.cookie = function() {
254+
$.cookie = function () {
255255
callCount++;
256256
if (callCount === 1) {
257257
// see https://github.com/carhartl/jquery-cookie/issues/99
@@ -269,7 +269,7 @@ test('with options', function() {
269269
$.cookie = originalCookie;
270270
});
271271

272-
test('passing options reference', function() {
272+
test('passing options reference', function () {
273273
expect(1);
274274
var options = { path: '/' };
275275
$.cookie('c', 'v', options);

0 commit comments

Comments
 (0)