sharyn
Version:
Combines all the other packages under one.
25 lines (23 loc) • 633 B
JavaScript
;
var _uiReductions = require("./ui-reductions");
test('addOneNotification', function () {
return expect((0, _uiReductions.addOneNotification)({
notifications: []
}, 'notif')).toEqual({
notifications: ['notif']
});
});
test('addMultipleNotifications', function () {
return expect((0, _uiReductions.addMultipleNotifications)({
notifications: []
}, ['a', 'b'])).toEqual({
notifications: ['a', 'b']
});
});
test('removeFirstNotification', function () {
return expect((0, _uiReductions.removeFirstNotification)({
notifications: ['a', 'b']
})).toEqual({
notifications: ['b']
});
});