adapt test to altered implementation

pull/6229/head
Jens Ulferts 7 years ago
parent f67aaf78ed
commit 6974a6868a
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 3
      frontend/app/components/api/api-v3/hal-resources/work-package-resource.service.test.ts

@ -310,10 +310,12 @@ describe('WorkPackageResource service', () => {
describe('when the upload succeeds', () => {
var removeStub:any;
var updateWorkPackageStub:any;
var updateWorkPackageTouchStub: sinon.SinonStub;
beforeEach(() => {
updateWorkPackageStub = sinon.stub(wpCacheService, 'updateWorkPackage');
uploadFilesDeferred.resolve();
updateWorkPackageTouchStub = sinon.stub(wpCacheService, 'touch');
removeStub = sinon.stub(NotificationsService, 'remove');
expectUncachedRequest('activities');
@ -337,6 +339,7 @@ describe('WorkPackageResource service', () => {
afterEach(() => {
updateWorkPackageStub.restore();
updateWorkPackageTouchStub.restore();
removeStub.restore();
});
});

Loading…
Cancel
Save