All files Cookie.bs.js

77.78% Statements 7/9
100% Branches 0/0
66.67% Functions 2/3
77.78% Lines 7/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33      1x     1x                           1x       1x       1x 1x 1x    
// Generated by BUCKLESCRIPT VERSION 3.0.0, PLEASE EDIT WITH CARE
'use strict';
 
var JsCookie = require("js-cookie");
 
function configToJs(param) {
  return {
          expires: param[/* expires */0],
          path: param[/* path */1]
        };
}
 
function configFromJs(param) {
  return /* record */[
          /* expires */param.expires,
          /* path */param.path
        ];
}
 
function setJsonConfig(key, json, expireInDays, path, _) {
  var config = /* record */[
    /* expires */expireInDays,
    /* path */path
  ];
  JsCookie.set(key, json, configToJs(config));
  return /* () */0;
}
 
exports.configToJs = configToJs;
exports.configFromJs = configFromJs;
exports.setJsonConfig = setJsonConfig;
/* js-cookie Not a pure module */