Skip to content

Commit

Permalink
ericabouaf#30, expose event history
Browse files Browse the repository at this point in the history
  • Loading branch information
hereandnow committed Jan 20, 2015
1 parent c1d958b commit af54318
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/event-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,14 @@ EventList.prototype = {
}
}
return finalDetail;
},

/**
* Get the raw event history
* @returns {Array}
*/
get_history: function () {
return this._events;
}


Expand Down
3 changes: 3 additions & 0 deletions test/test_EventList.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ describe('EventList', function(){
assert.equal(null, evl.results('does-not-exist'));
});

it('#get_history', function () {
assert.equal(fixtureData, evl.get_history());
});
})

describe('childworkflow', function() {
Expand Down

0 comments on commit af54318

Please sign in to comment.