corrade-nucleus-nucleons – Blame information for rev 41

Subversion Repositories:
Rev:
Rev Author Line No. Line
41 office 1 /*jshint node:true */
2 exports.node = {
3 should_load_js_cookie: function (test) {
4 test.expect(1);
5 var Cookies = require('../src/js.cookie');
6 test.ok(!!Cookies.get, 'should load the Cookies API');
7 test.done();
8 },
9 should_not_throw_error_for_set_call_in_node: function (test) {
10 test.expect(0);
11 var Cookies = require('../src/js.cookie');
12 Cookies.set('anything');
13 Cookies.set('anything', { path: '' });
14 test.done();
15 },
16 should_not_throw_error_for_get_call_in_node: function (test) {
17 test.expect(0);
18 var Cookies = require('../src/js.cookie');
19 Cookies.get('anything');
20 test.done();
21 },
22 should_not_throw_error_for_remove_call_in_node: function (test) {
23 test.expect(0);
24 var Cookies = require('../src/js.cookie');
25 Cookies.remove('anything');
26 Cookies.remove('anything', { path: '' });
27 test.done();
28 }
29 };