mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 15:37:46 +03:00
14 lines
456 B
CoffeeScript
14 lines
456 B
CoffeeScript
|
Notification = require '../src/notification'
|
||
|
|
||
|
describe "Notification", ->
|
||
|
[notification] = []
|
||
|
|
||
|
describe "::getIcon()", ->
|
||
|
it "returns a default when no icon specified", ->
|
||
|
notification = new Notification('error', 'message!')
|
||
|
expect(notification.getIcon()).toBe 'bug'
|
||
|
|
||
|
it "returns the icon specified", ->
|
||
|
notification = new Notification('error', 'message!', icon: 'my-icon')
|
||
|
expect(notification.getIcon()).toBe 'my-icon'
|