Removed deprecated helper function async

This commit is contained in:
Giuseppe Digilio
2021-01-07 20:12:15 +01:00
parent 4d4e920f0d
commit e5af894077
418 changed files with 2114 additions and 1912 deletions

View File

@@ -26,7 +26,7 @@ describe('JsonPatchOperationsEffects test suite', () => {
TestBed.configureTestingModule({
providers: [
JsonPatchOperationsEffects,
{provide: Store, useValue: store},
{ provide: Store, useValue: store },
provideMockActions(() => actions),
// other providers
],
@@ -40,7 +40,7 @@ describe('JsonPatchOperationsEffects test suite', () => {
actions = hot('--a-', {
a: {
type: JsonPatchOperationsActionTypes.COMMIT_JSON_PATCH_OPERATIONS,
payload: {resourceType: testJsonPatchResourceType, resourceId: testJsonPatchResourceId}
payload: { resourceType: testJsonPatchResourceType, resourceId: testJsonPatchResourceId }
}
});

View File

@@ -42,25 +42,25 @@ describe('jsonPatchOperationsReducer test suite', () => {
const timestampAfterStart = 1545994837492;
const startTimestamp = 1545994827492;
const testState: JsonPatchOperationsState = {
testResourceType: {
children: {
testResourceId: {
body: [
{
operation: {
op: 'add',
path: '/testResourceType/testResourceId/testField',
value: ['test']
},
timeCompleted: timestampBeforeStart
},
]
} as JsonPatchOperationsEntry
},
transactionStartTime: null,
commitPending: false
} as JsonPatchOperationsResourceEntry
};
testResourceType: {
children: {
testResourceId: {
body: [
{
operation: {
op: 'add',
path: '/testResourceType/testResourceId/testField',
value: ['test']
},
timeCompleted: timestampBeforeStart
},
]
} as JsonPatchOperationsEntry
},
transactionStartTime: null,
commitPending: false
} as JsonPatchOperationsResourceEntry
};
let initState: JsonPatchOperationsState;