sharyn
Version:
Combines all the other packages under one.
21 lines (17 loc) • 555 B
Flow
import {
addOneNotification,
addMultipleNotifications,
removeFirstNotification,
} from './ui-reductions'
test('addOneNotification', () =>
expect(addOneNotification({ notifications: [] }, 'notif')).toEqual({
notifications: ['notif'],
}))
test('addMultipleNotifications', () =>
expect(addMultipleNotifications({ notifications: [] }, ['a', 'b'])).toEqual({
notifications: ['a', 'b'],
}))
test('removeFirstNotification', () =>
expect(removeFirstNotification({ notifications: ['a', 'b'] })).toEqual({
notifications: ['b'],
}))