diff --git a/lib/event-list.js b/lib/event-list.js index 4449a32..9ca80c6 100644 --- a/lib/event-list.js +++ b/lib/event-list.js @@ -471,6 +471,14 @@ EventList.prototype = { } } return finalDetail; + }, + + /** + * Get the raw event history + * @returns {Array} + */ + get_history: function () { + return this._events; } diff --git a/test/test_EventList.js b/test/test_EventList.js index b7b092d..d593fc1 100644 --- a/test/test_EventList.js +++ b/test/test_EventList.js @@ -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() {