UNPKG

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