Sha256: 6a629e61cefc16799376109f583487a85e3e0bef42f68da5a014bf35cac113f4

Contents?: true

Size: 1.82 KB

Versions: 8

Compression:

Stored size: 1.82 KB

Contents

{:uriI"file:///Users/izik/www/sparse/izi_lightup/spec/javascripts/crit-utils/active_emit_spec.js?type=application/javascript&pipeline=self&id=69f82b52c1c82c2c6194cfad15ebc50d9ea8ff425c7f983871618e860e78af92: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"%9f"<or§uBvj:lengthi:dependencies_digest"%a{UbgĄC[pC:idI"E69f82b52c1c82c2c6194cfad15ebc50d9ea8ff425c7f983871618e860e78af92;F:
mtimel+hG]b

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
izi_lightup-1.0.31 spec/dummy/tmp/cache/assets/sprockets/v3.0/2u/2U8pE_VzWqGoTks2f-XOZZJxFLD10tRIvPVpSbV1SI0.cache
izi_lightup-1.0.29 spec/dummy/tmp/cache/assets/sprockets/v3.0/2u/2U8pE_VzWqGoTks2f-XOZZJxFLD10tRIvPVpSbV1SI0.cache
izi_lightup-1.0.28 spec/dummy/tmp/cache/assets/sprockets/v3.0/2u/2U8pE_VzWqGoTks2f-XOZZJxFLD10tRIvPVpSbV1SI0.cache
izi_lightup-1.0.27 spec/dummy/tmp/cache/assets/sprockets/v3.0/2u/2U8pE_VzWqGoTks2f-XOZZJxFLD10tRIvPVpSbV1SI0.cache
izi_lightup-1.0.26 spec/dummy/tmp/cache/assets/sprockets/v3.0/2u/2U8pE_VzWqGoTks2f-XOZZJxFLD10tRIvPVpSbV1SI0.cache
izi_lightup-1.0.25 spec/dummy/tmp/cache/assets/sprockets/v3.0/2u/2U8pE_VzWqGoTks2f-XOZZJxFLD10tRIvPVpSbV1SI0.cache
izi_lightup-1.0.24 spec/dummy/tmp/cache/assets/sprockets/v3.0/2u/2U8pE_VzWqGoTks2f-XOZZJxFLD10tRIvPVpSbV1SI0.cache
izi_lightup-1.0.23 spec/dummy/tmp/cache/assets/sprockets/v3.0/2u/2U8pE_VzWqGoTks2f-XOZZJxFLD10tRIvPVpSbV1SI0.cache