diff --git a/lib/event-list.js b/lib/event-list.js index c38a3cc..4449a32 100644 --- a/lib/event-list.js +++ b/lib/event-list.js @@ -72,7 +72,7 @@ EventList.prototype = { }, /** - * Check the presence of an Event with the specified + * Check the presence of an Event with the specified * @param {String} attributeKey * @param {String} attributeValue * @param {String} eventType @@ -248,7 +248,7 @@ EventList.prototype = { * @returns {Boolean} */ failed: function (activityId) { - return this.has_activity_failed(activityId) || + return this.has_activity_failed(activityId) || this.has_schedule_activity_task_failed(activityId); }, diff --git a/test/test_EventList.js b/test/test_EventList.js index dfdcf37..b7b092d 100644 --- a/test/test_EventList.js +++ b/test/test_EventList.js @@ -107,7 +107,7 @@ describe('EventList', function(){ var fixtureData = JSON.parse(fs.readFileSync( path.join(__dirname , '..', 'fixtures', fixtureFile), 'utf8') ); var evl = new EventList(fixtureData); - + it('has json input', function() { assert.deepEqual ({ foo: "arbitrary-string-that-is-meaningful-to-the-workflow"}, evl.workflow_input() ); }) @@ -179,7 +179,7 @@ describe('EventList', function(){ it('#failed()', function() { assert.equal(true, evl.failed("my-fourth-activity") ); }) - + }) @@ -208,8 +208,8 @@ describe('EventList', function(){ }) it('#signal_input()', function() { - assert.equal("my-signal-input", evl.signal_input('my-signal') ); - assert.deepEqual({foo: "my-signal-input"}, evl.signal_input('json-signal') ); + assert.equal("my-signal-input", evl.signal_input('my-signal') ); + assert.deepEqual({foo: "my-signal-input"}, evl.signal_input('json-signal') ); }) })