Added tests

This commit is contained in:
Giuseppe Digilio
2019-01-08 23:25:44 +01:00
parent 959c02af74
commit 967d682962
17 changed files with 1094 additions and 393 deletions

View File

@@ -315,8 +315,6 @@ describe('jsonPatchOperationsReducer test suite', () => {
const action = new FlushPatchOperationsAction(testJsonPatchResourceType, undefined);
const newState = jsonPatchOperationsReducer(initState, action);
console.log(initState);
console.log(newState);
expect(newState[testJsonPatchResourceType].transactionStartTime).toBeNull();
expect(newState[testJsonPatchResourceType].commitPending).toBeFalsy();
expect(newState[testJsonPatchResourceType].children[testJsonPatchResourceId].body).toEqual([]);