{:uriI"Çfile:///Users/izik/www/sparse/izi_lightup/spec/javascripts/crit-utils/active_emit_spec.js?type=application/javascript&pipeline=self&id=aa0fb36130b25bcc71c7ca291d77836dc329562889a187fd4e01ddc39f014c32:ET:load_pathI"8/Users/izik/www/sparse/izi_lightup/spec/javascripts;T: filenameI"W/Users/izik/www/sparse/izi_lightup/spec/javascripts/crit-utils/active_emit_spec.js;T: nameI" crit-utils/active_emit_spec;T:logical_pathI"(crit-utils/active_emit_spec.self.js;T:content_typeI"application/javascript;T: sourceI"ådescribe("activeOn", function () { var $clock; beforeEach(function () { $clock = jasmine.clock(); // activeOn.untrack(); }); it("should exists as global function", function () { expect(activeOn).toBeDefined(); expect(typeof activeOn).toBe("function"); }); it("should call callback", function () { return new Promise(function (resolve, _reject) { var emitted = false; activeOn.$$mock(function () { setTimeout(function () { emitted = true; $("body").trigger("click"); }, 50; }); activeOn(function () { expect(emitted).toBeTruthy(); resolve(); }); }); // expect(typeof waitFor("SOMEWHAT")).toBe("function"); }); }); ;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"efile-digest:///Users/izik/www/sparse/izi_lightup/spec/javascripts/crit-utils/active_emit_spec.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%Ôÿ{‚IÿAª¾¯?•y 2ã,ú¿kFß6Ñ {: lengthiå:dependencies_digest"%ÆŒô š>ü&ÕUebõõæ”ƈÄó¬æÿÅ<;³¿—:idI"Eaa0fb36130b25bcc71c7ca291d77836dc329562889a187fd4e01ddc39f014c32;F: mtimel+_G]b