We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c55b201 commit bf51175Copy full SHA for bf51175
test/eventsSpec.js
@@ -17,6 +17,15 @@ describe('events', function() {
17
expect(valid).toBeTruthy();
18
});
19
20
+ it('should have a context of flow instance', function() {
21
+ var context = null;
22
+ flow.on('test', function () {
23
+ context = this;
24
+ });
25
+ flow.fire('test');
26
+ expect(context).toEqual(flow);
27
28
+
29
it('should pass some arguments', function() {
30
var valid = false;
31
var argumentOne = 123;
@@ -101,4 +110,4 @@ describe('events', function() {
101
110
expect(event).not.toHaveBeenCalled();
102
111
103
112
104
-});
113
+});
0 commit comments