UNPKG

633 BJavaScriptView Raw
1"use strict";
2
3var _uiReductions = require("./ui-reductions");
4
5test('addOneNotification', function () {
6 return expect((0, _uiReductions.addOneNotification)({
7 notifications: []
8 }, 'notif')).toEqual({
9 notifications: ['notif']
10 });
11});
12test('addMultipleNotifications', function () {
13 return expect((0, _uiReductions.addMultipleNotifications)({
14 notifications: []
15 }, ['a', 'b'])).toEqual({
16 notifications: ['a', 'b']
17 });
18});
19test('removeFirstNotification', function () {
20 return expect((0, _uiReductions.removeFirstNotification)({
21 notifications: ['a', 'b']
22 })).toEqual({
23 notifications: ['b']
24 });
25});
\No newline at end of file