diff --git a/spec/app/root-view-spec.coffee b/spec/app/root-view-spec.coffee index 72c239418..8e1c2ca81 100644 --- a/spec/app/root-view-spec.coffee +++ b/spec/app/root-view-spec.coffee @@ -542,13 +542,13 @@ describe "RootView", -> describe "font size adjustment", -> it "increases/decreases font size when increase/decrease-font-size events are triggered", -> fontSizeBefore = rootView.getFontSize() - rootView.trigger 'increase-font-size' + rootView.trigger 'root-view:increase-font-size' expect(rootView.getFontSize()).toBe fontSizeBefore + 1 - rootView.trigger 'increase-font-size' + rootView.trigger 'root-view:increase-font-size' expect(rootView.getFontSize()).toBe fontSizeBefore + 2 - rootView.trigger 'decrease-font-size' + rootView.trigger 'root-view:decrease-font-size' expect(rootView.getFontSize()).toBe fontSizeBefore + 1 - rootView.trigger 'decrease-font-size' + rootView.trigger 'root-view:decrease-font-size' expect(rootView.getFontSize()).toBe fontSizeBefore it "does not allow the font size to be less than 1", -> diff --git a/spec/extensions/wrap-guide-spec.coffee b/spec/extensions/wrap-guide-spec.coffee index 0aef8f95e..0aa024cdb 100644 --- a/spec/extensions/wrap-guide-spec.coffee +++ b/spec/extensions/wrap-guide-spec.coffee @@ -32,7 +32,7 @@ describe "WrapGuide", -> it "updates the wrap guide position", -> initial = wrapGuide.position().left expect(initial).toBeGreaterThan(0) - rootView.trigger('increase-font-size') + rootView.trigger('root-view:increase-font-size') expect(wrapGuide.position().left).toBeGreaterThan(initial) describe "overriding getGuideColumn", ->