Skip to content

Commit 740f65b

Browse files
The returned value has the path added here too if set as default
1 parent b9212c1 commit 740f65b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎test/tests.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ test('expires option as Date instance', function () {
157157

158158
test('return value', function () {
159159
expect(1);
160-
strictEqual(Cookies.set('c', 'v'), 'c=v', 'should return written cookie string');
160+
var expected = 'c=v';
161+
var actual = Cookies.set('c', 'v').substring(0, expected.length);
162+
strictEqual(actual, expected, 'should return written cookie string');
161163
});
162164

163165
test('defaults', function () {

0 commit comments

Comments
 (0)