initialize is synchronous
authorSteve Hackbarth <stephenhackbarth@gmail.com>
Tue, 10 Jun 2014 19:44:57 +0000 (15:44 -0400)
committerSteve Hackbarth <stephenhackbarth@gmail.com>
Tue, 10 Jun 2014 19:44:57 +0000 (15:44 -0400)
test/specs/incident.js

index cca4560..509d231 100644 (file)
@@ -111,11 +111,8 @@ setTimeout:true, before:true, clearTimeout:true, exports:true, it:true, describe
     describe("Incident status behavior", function () {
       var incidentModel;
 
-      beforeEach(function (done) {
+      beforeEach(function () {
         incidentModel = new XM.Incident();
-        incidentModel.once("status:READY_NEW", function () {
-          done();
-        });
         incidentModel.initialize(null, {isNew: true});
       });
       it("Incident status starts out as new", function () {