{:uriI"file:///Users/izik/www/sparse/izi_lightup/spec/javascripts/helpers/extend/matchers.js?type=application/javascript&pipeline=self&id=2ec459782d92f236323f45bdad5aadd7d5985a3752789b4ac4211dc4ef8ef46b: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"%xSiC|lgǠnE: lengthi:dependencies_digest"%.Zxj+Szdp$o|>5tJ:idI"E2ec459782d92f236323f45bdad5aadd7d5985a3752789b4ac4211dc4ef8ef46b;F: mtimel+$]b