All files / node_modules/js-yaml/lib/js-yaml/type str.js

100% Statements 3/3
0% Branches 0/2
100% Functions 0/0
100% Lines 3/3
1 2 3 4 5 6 7 8 91x   1x   1x        
'use strict';
 
var Type = require('../type');
 
module.exports = new Type('tag:yaml.org,2002:str', {
  kind: 'scalar',
  construct: function (data) { return data !== null ? data : ''; }
});