1 | "use strict";
|
2 |
|
3 | var _uiReductions = require("./ui-reductions");
|
4 |
|
5 | test('addOneNotification', function () {
|
6 | return expect((0, _uiReductions.addOneNotification)({
|
7 | notifications: []
|
8 | }, 'notif')).toEqual({
|
9 | notifications: ['notif']
|
10 | });
|
11 | });
|
12 | test('addMultipleNotifications', function () {
|
13 | return expect((0, _uiReductions.addMultipleNotifications)({
|
14 | notifications: []
|
15 | }, ['a', 'b'])).toEqual({
|
16 | notifications: ['a', 'b']
|
17 | });
|
18 | });
|
19 | test('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 |