{:uriI"Ãfile:///Users/izik/www/sparse/izi_lightup/spec/javascripts/helpers/extend/matchers.js?type=application/javascript&pipeline=self&id=d57cfe152c0e5e077b10cd279cc4656451ba77274a00750749aee5c84e1ffe79:ET:load_pathI"8/Users/izik/www/sparse/izi_lightup/spec/javascripts;T: filenameI"S/Users/izik/www/sparse/izi_lightup/spec/javascripts/helpers/extend/matchers.js;T: nameI"helpers/extend/matchers;T:logical_pathI"$helpers/extend/matchers.self.js;T:content_typeI"application/javascript;T: sourceI"Çfunction isNil(value) { return (value === undefined) || (value === null); } function isBlank(value) { if (isNil(value)) { return true; } switch (typeof value) { case 'string': return value.trim().length === 0; case 'number': return value !== 0 && !value; case 'object': if (Array.isArray(value)) { return value.length === 0; } else { return Object.getOwnPropertyNames(value).length === 0 } default: return !value; } } beforeEach(function () { jasmine.addMatchers({ toBeNil: function () { return { compare: function (actual, _expected) { return { pass: isNil(actual) }; } }; }, toBeFunction: function () { return { compare: function (actual, _expected) { return { pass: typeof actual === 'function' }; } }; }, toBeBlank: function () { return { compare: function (actual, _expected) { return { pass: isBlank(actual) }; } }; }, toBePresent: function () { return { compare: function (actual, _expected) { return { pass: !isBlank(actual) }; } }; } }); }); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"afile-digest:///Users/izik/www/sparse/izi_lightup/spec/javascripts/helpers/extend/matchers.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%ÿxñSšiC|ÚlÔgÇ ½áä¬n°÷ˆ·ŽE: lengthiÇ:dependencies_digest"%0e®S¸´$;‚ÀÖ7Ø>öqïÚqiþëžbù:idI"Ed57cfe152c0e5e077b10cd279cc4656451ba77274a00750749aee5c84e1ffe79;F: mtimel+â$]b