code cleanup

This commit is contained in:
Tony Brix
2017-12-08 16:15:51 -06:00
committed by GitHub
parent fe4df885d6
commit d28166b1e4

View File

@@ -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()
})
})
})