UNPKG

sharyn

Version:

Combines all the other packages under one.

25 lines (23 loc) 633 B
"use strict"; 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'] }); });