Sha256: 9d610e10c10c5412e98a82a5eed9f7d82b065003f9b04dc59cdddbf589496e4b

Contents?: true

Size: 472 Bytes

Versions: 4

Compression:

Stored size: 472 Bytes

Contents

//Tests whether dlink_init will transmit the correct information

QUnit.test("dlink_init does notify the dlink system with the proper address", function(assert) {
  var done = assert.async();

  //Hijack the int event function
  window.int_dispatch = function(q) {
    int_dispatch_res = q;
  }

  dlink_init();

  assert.equal(JSON.stringify(int_dispatch_res), JSON.stringify([2, "int_dlink_notify", "http://test.com:80/test", {"foo": "bar"}]), "Matches");
  done();
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
flok-0.0.105 app/drivers/chrome/spec/spec/dlink_spec.js
flok-0.0.103 app/drivers/chrome/spec/spec/dlink_spec.js
flok-0.0.102 app/drivers/chrome/spec/spec/dlink_spec.js
flok-0.0.101 app/drivers/chrome/spec/spec/dlink_spec.js