Skip to content

Commit 6ff48c8

Browse files
This is not called "options" anymore, but "attributes"
1 parent f43aecb commit 6ff48c8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/tests.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,20 +184,20 @@ test('deletion', function () {
184184
strictEqual(document.cookie, '', 'should delete the cookie');
185185
});
186186

187-
test('with options', function () {
187+
test('with attributes', function () {
188188
expect(1);
189-
var options = { path: '/' };
190-
Cookies.set('c', 'v', options);
191-
Cookies.remove('c', options);
189+
var attributes = { path: '/' };
190+
Cookies.set('c', 'v', attributes);
191+
Cookies.remove('c', attributes);
192192
strictEqual(document.cookie, '', 'should delete the cookie');
193193
});
194194

195-
test('passing options reference', function () {
195+
test('passing attributes reference', function () {
196196
expect(1);
197-
var options = { path: '/' };
198-
Cookies.set('c', 'v', options);
199-
Cookies.remove('c', options);
200-
deepEqual(options, { path: '/' }, 'won\'t alter options object');
197+
var attributes = { path: '/' };
198+
Cookies.set('c', 'v', attributes);
199+
Cookies.remove('c', attributes);
200+
deepEqual(attributes, { path: '/' }, 'won\'t alter attributes object');
201201
});
202202

203203
module('converters', lifecycle);

0 commit comments

Comments
 (0)