From d28166b1e4dbb3875fb8b340c2d494285d88faac Mon Sep 17 00:00:00 2001 From: Tony Brix Date: Fri, 8 Dec 2017 16:15:51 -0600 Subject: [PATCH] code cleanup --- spec/notification-manager-spec.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/notification-manager-spec.js b/spec/notification-manager-spec.js index b62569ee6..a3ba63905 100644 --- a/spec/notification-manager-spec.js +++ b/spec/notification-manager-spec.js @@ -68,7 +68,7 @@ describe('NotificationManager', () => { }) describe('clearing notifications', function () { - it('clears the notifications when ::clear has been called', function(){ + it('clears the notifications when ::clear has been called', () => { manager.addSuccess('success') expect(manager.getNotifications().length).toBe(1) manager.clear() @@ -76,16 +76,16 @@ describe('NotificationManager', () => { }) describe('adding events', () => { - let addSpy + let clearSpy beforeEach(() => { - addSpy = jasmine.createSpy() - manager.onDidClearNotifications(addSpy) + clearSpy = jasmine.createSpy() + manager.onDidClearNotifications(clearSpy) }) it('emits an event when the notifications have been cleared', () => { manager.clear() - expect(addSpy).toHaveBeenCalled() + expect(clearSpy).toHaveBeenCalled() }) }) })