diff options
Diffstat (limited to 'web-ui/test/spec/dispatchers')
3 files changed, 5 insertions, 5 deletions
diff --git a/web-ui/test/spec/dispatchers/left_pane_dispatcher.spec.js b/web-ui/test/spec/dispatchers/left_pane_dispatcher.spec.js index 935bb917..df8169c6 100644 --- a/web-ui/test/spec/dispatchers/left_pane_dispatcher.spec.js +++ b/web-ui/test/spec/dispatchers/left_pane_dispatcher.spec.js @@ -7,7 +7,7 @@ describeComponent('dispatchers/left_pane_dispatcher', function () { it('asks for tags', function () { var tagWantEvent = spyOnEvent(document, Pixelated.events.tags.want); - setupComponent(); + this.setupComponent(); expect(tagWantEvent).toHaveBeenTriggeredOn(document); expect(tagWantEvent.mostRecentCall.data.caller[0]).toEqual(this.$node[0]); @@ -16,7 +16,7 @@ describeComponent('dispatchers/left_pane_dispatcher', function () { describe('after initialization', function () { beforeEach(function () { - setupComponent(); + this.setupComponent(); }); it('pushes the url state when a tag is selected but not for the first tag', function () { diff --git a/web-ui/test/spec/dispatchers/middle_pane_dispatchers.spec.js b/web-ui/test/spec/dispatchers/middle_pane_dispatchers.spec.js index f35218d0..1dfc7c84 100644 --- a/web-ui/test/spec/dispatchers/middle_pane_dispatchers.spec.js +++ b/web-ui/test/spec/dispatchers/middle_pane_dispatchers.spec.js @@ -4,7 +4,7 @@ describeComponent('dispatchers/middle_pane_dispatcher', function () { 'use strict'; beforeEach(function() { - setupComponent('<div><div id="middle-pane" style="height: 200px; overflow-y: scroll;"><div style="height: 400px"></div></div></div>'); + this.setupComponent('<div><div id="middle-pane" style="height: 200px; overflow-y: scroll;"><div style="height: 400px"></div></div></div>'); }); it ('listens to refresh mail list event', function() { diff --git a/web-ui/test/spec/dispatchers/right_pane_dispatcher.spec.js b/web-ui/test/spec/dispatchers/right_pane_dispatcher.spec.js index bac42252..89530ac8 100644 --- a/web-ui/test/spec/dispatchers/right_pane_dispatcher.spec.js +++ b/web-ui/test/spec/dispatchers/right_pane_dispatcher.spec.js @@ -6,7 +6,7 @@ describeComponent('dispatchers/right_pane_dispatcher', function () { describe('after initialization', function () { beforeEach(function () { - setupComponent(); + this.setupComponent(); }); it('listens to open compose box event and creates a compose box', function () { @@ -80,7 +80,7 @@ describeComponent('dispatchers/right_pane_dispatcher', function () { it('opens the no message selected pane but doesnt push the state', function () { var pushStateEvent = spyOnEvent(document, Pixelated.events.router.pushState); - setupComponent(); + this.setupComponent(); expect(noMessageSelectedPane.attachTo).toHaveBeenCalled(); expect(pushStateEvent).not.toHaveBeenTriggeredOn(document); |