1 | "use strict";
|
2 |
|
3 | var _dataOperations = require("./data-operations");
|
4 |
|
5 | test('', function () {
|
6 | expect((0, _dataOperations.addDataOperation)({}, {
|
7 | a: 'a'
|
8 | })).toEqual({
|
9 | a: 'a'
|
10 | });
|
11 | expect((0, _dataOperations.addDataOperation)({
|
12 | a: 'a',
|
13 | b: 'b'
|
14 | }, {
|
15 | b: 'X',
|
16 | c: 'c'
|
17 | })).toEqual({
|
18 | a: 'a',
|
19 | b: 'X',
|
20 | c: 'c'
|
21 | });
|
22 | });
|
23 | test('delDataOperation', function () {
|
24 | var dataState = {
|
25 | foo: 'foo',
|
26 | bar: 'bar'
|
27 | };
|
28 | expect((0, _dataOperations.delDataOperation)(dataState, 'foo')).toEqual({
|
29 | bar: 'bar'
|
30 | });
|
31 | });
|
32 | test('clearDataOperation', function () {
|
33 | var dataState = {
|
34 | foo: 'foo',
|
35 | bar: 'bar'
|
36 | };
|
37 | expect((0, _dataOperations.clearDataOperation)(dataState)).toEqual({});
|
38 | }); |
\ | No newline at end of file |