@studyportals/sp-lurch-interface
Advanced tools
Comparing version 2.8.0 to 2.8.1
{ | ||
"name": "@studyportals/sp-lurch-interface", | ||
"version": "2.8.0", | ||
"version": "2.8.1", | ||
"description": "Contains Data Transfer Objects required or provided by Lurch through its interface.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -88,3 +88,2 @@ "use strict"; | ||
const inputBatchIdentity = "InputBatchIdentity"; | ||
const representativeIdentity = "RepresentativeIdentity"; | ||
yield this.testInstance.approveInputBatch(inputBatchIdentity); | ||
@@ -105,2 +104,26 @@ this.mockedRequest.verify(_ => _.send(typemoq_1.It.isObjectWith({ inputBatchIdentity: inputBatchIdentity })), typemoq_1.Times.once()); | ||
} | ||
discardInputBatch__PostRequestCreatedForCorrectPath() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
yield this.testInstance.discardInputBatch(typemoq_1.It.isAny()); | ||
this.mockedTestInstance.verify(_ => _["createPostRequest"]("/input-batch/discard"), typemoq_1.Times.once()); | ||
}); | ||
} | ||
discardInputBatch__InputBatchIdentitySpecified() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const inputBatchIdentity = "InputBatchIdentity"; | ||
yield this.testInstance.discardInputBatch(inputBatchIdentity); | ||
this.mockedRequest.verify(_ => _.send(typemoq_1.It.isObjectWith({ inputBatchIdentity: inputBatchIdentity })), typemoq_1.Times.once()); | ||
}); | ||
} | ||
discardInputBatch__RequestSent() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
let awaited = false; | ||
this.mockedRequestSender.setup(_ => _.send(typemoq_1.It.isAny())) | ||
.returns(() => new Promise(_ => setImmediate(() => { awaited = true; _(); }))); | ||
; | ||
yield this.testInstance.discardInputBatch(typemoq_1.It.isAny()); | ||
this.mockedRequestSender.verify(_ => _.send(this.request), typemoq_1.Times.once()); | ||
chai_1.assert.isTrue(awaited); | ||
}); | ||
} | ||
createGetRequest__UrlCorrectlyBuilt() { | ||
@@ -197,2 +220,20 @@ const { mockedTestInstance, testInstance } = this.createTestInstance(); | ||
__metadata("design:paramtypes", []), | ||
__metadata("design:returntype", Promise) | ||
], LurchClientTest.prototype, "discardInputBatch__PostRequestCreatedForCorrectPath", null); | ||
__decorate([ | ||
mocha_typescript_1.test, | ||
__metadata("design:type", Function), | ||
__metadata("design:paramtypes", []), | ||
__metadata("design:returntype", Promise) | ||
], LurchClientTest.prototype, "discardInputBatch__InputBatchIdentitySpecified", null); | ||
__decorate([ | ||
mocha_typescript_1.test, | ||
__metadata("design:type", Function), | ||
__metadata("design:paramtypes", []), | ||
__metadata("design:returntype", Promise) | ||
], LurchClientTest.prototype, "discardInputBatch__RequestSent", null); | ||
__decorate([ | ||
mocha_typescript_1.test, | ||
__metadata("design:type", Function), | ||
__metadata("design:paramtypes", []), | ||
__metadata("design:returntype", void 0) | ||
@@ -199,0 +240,0 @@ ], LurchClientTest.prototype, "createGetRequest__UrlCorrectlyBuilt", null); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
99804
85
1357