mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 05:23:06 +00:00
Removed deprecated helper function async
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
});
|
||||
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user