"use strict";

var _errors = require("./errors");
describe('Mobius socket errors', function () {
  it('preserves close-event details assigned after super(event)', function () {
    var error = new _errors.ConnectionError({
      code: 3050,
      reason: 'done (permanent)'
    });
    expect(error.code).toBe(3050);
    expect(error.reason).toBe('done (permanent)');
    expect(error.parse({
      code: 3051,
      reason: 'retry'
    })).toBe('retry');
    expect(error.code).toBe(3050);
    expect(error.reason).toBe('done (permanent)');
  });
});
//# sourceMappingURL=errors.test.js.map
