feat: add elasticsearch mappings to build

Add backwards compatibility check with typescript v3.8.3
This commit is contained in:
Wieland Schöbl
2021-08-12 13:09:45 +00:00
committed by Jovan Krunić
parent 2dfb64bafd
commit 21eeecd5ee
5 changed files with 279 additions and 47 deletions

View File

@@ -116,8 +116,10 @@ export class GuardsSpec {
@test
public isSearchResponse() {
const notASearchResponse = {...GuardsSpec.searchResponse};
// @ts-ignore
delete notASearchResponse.pagination;
expect(isSearchResponse(notASearchResponse)).to.be.equal(false);
// @ts-ignore
delete notASearchResponse.data;
expect(isSearchResponse(notASearchResponse)).to.be.equal(false);
expect(isSearchResponse(null)).to.be.equal(false);