Skip to content

Commit a464b55

Browse files
committed
Using expect() elsewhere too
1 parent 8e2adc4 commit a464b55

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

‎test.js‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ test('raw: true', function () {
177177
equal($.cookie('c', ' v').split('=')[1], ' v', 'should not encode');
178178
});
179179

180-
test('json: true', 1, function () {
180+
test('json: true', function () {
181+
expect(1);
181182
$.cookie.json = true;
182183

183184
if ('JSON' in window) {
@@ -191,7 +192,8 @@ test('json: true', 1, function () {
191192

192193
module('delete', before);
193194

194-
test('delete (deprecated)', 1, function () {
195+
test('delete (deprecated)', function () {
196+
expect(1);
195197
document.cookie = 'c=v';
196198
$.cookie('c', null);
197199
equal(document.cookie, '', 'should delete the cookie');
@@ -200,20 +202,23 @@ test('delete (deprecated)', 1, function () {
200202

201203
module('removeCookie', before);
202204

203-
test('delete', 1, function() {
205+
test('delete', function() {
206+
expect(1);
204207
document.cookie = 'c=v';
205208
$.removeCookie('c');
206209
equal(document.cookie, '', 'should delete the cookie');
207210
});
208211

209-
test('return', 2, function() {
212+
test('return', function() {
213+
expect(2);
210214
equal($.removeCookie('c'), false, "should return false if a cookie wasn't found");
211215

212216
document.cookie = 'c=v';
213217
equal($.removeCookie('c'), true, 'should return true if the cookie was found');
214218
});
215219

216-
test('with options', 2, function() {
220+
test('with options', function() {
221+
expect(2);
217222
var oldCookie = $.cookie;
218223

219224
$.cookie = function(arg0, arg1, arg2) {

0 commit comments

Comments
 (0)