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