diff --git a/dev.ts b/dev.ts index 2c9c6a5d..dcab13ef 100644 --- a/dev.ts +++ b/dev.ts @@ -1,5 +1,8 @@ import { parseWsdl } from "./src/parser"; (async function () { - const d = await parseWsdl("./test/resources/strict/EVacSyncService_SPClient.wsdl", { modelNamePreffix: "", modelNameSuffix: "" }); -})(); \ No newline at end of file + const d = await parseWsdl("./test/resources/strict/EVacSyncService_SPClient.wsdl", { + modelNamePreffix: "", + modelNameSuffix: "", + }); +})(); diff --git a/package.json b/package.json index b251cd41..431815be 100644 --- a/package.json +++ b/package.json @@ -20,8 +20,8 @@ "dev": "ts-node -T ./dev.ts", "dist": "tsc", "build": "tsc", - "lint": "eslint ./src", - "lint:fix": "eslint --fix ./src" + "lint": "eslint '**/*.ts'", + "lint:fix": "eslint --fix '**/*.ts'" }, "repository": { "type": "git", diff --git a/test/node-soap/array_namespace_override.test.ts b/test/node-soap/array_namespace_override.test.ts index 31a8469d..70747315 100644 --- a/test/node-soap/array_namespace_override.test.ts +++ b/test/node-soap/array_namespace_override.test.ts @@ -6,18 +6,18 @@ import { typecheck } from "../utils/tsc"; const target = "array_namespace_override.wsdl"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/arraynamespaceoverride/definitions/Items.ts`), true); t.equal(existsSync(`${outdir}/arraynamespaceoverride/definitions/Markdowns.ts`), true); t.equal(existsSync(`${outdir}/arraynamespaceoverride/definitions/Order.ts`), true); @@ -27,8 +27,8 @@ test(target, async t => { t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/arraynamespaceoverride/index.ts`); - t.end(); + t.end(); }); -}); \ No newline at end of file +}); diff --git a/test/node-soap/attachments.test.ts b/test/node-soap/attachments.test.ts index e7c6ecaa..d29080fd 100644 --- a/test/node-soap/attachments.test.ts +++ b/test/node-soap/attachments.test.ts @@ -6,26 +6,25 @@ import { typecheck } from "../utils/tsc"; const target = "attachments"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/attachments/definitions/Request.ts`), true); t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/attachments/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/binding-exception.test.ts b/test/node-soap/binding-exception.test.ts index 26e285e2..8ccc559f 100644 --- a/test/node-soap/binding-exception.test.ts +++ b/test/node-soap/binding-exception.test.ts @@ -6,26 +6,25 @@ import { typecheck } from "../utils/tsc"; const target = "binding-exception"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/bindingexception/definitions/LoginUserRequest.ts`), true); t.equal(existsSync(`${outdir}/bindingexception/definitions/LoginUserResponse.ts`), true); t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/bindingexception/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/binding_document.test.ts b/test/node-soap/binding_document.test.ts index debba78a..265057df 100644 --- a/test/node-soap/binding_document.test.ts +++ b/test/node-soap/binding_document.test.ts @@ -5,20 +5,19 @@ import { typecheck } from "../utils/tsc"; const target = "binding_document"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/bindingdocument/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/builtin_types.test.ts b/test/node-soap/builtin_types.test.ts index ef477598..50829660 100644 --- a/test/node-soap/builtin_types.test.ts +++ b/test/node-soap/builtin_types.test.ts @@ -6,18 +6,18 @@ import { typecheck } from "../utils/tsc"; const target = "builtin_types"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/builtintypes/definitions/Xsduration.ts`), true); t.equal(existsSync(`${outdir}/builtintypes/definitions/XsnonNegativeInteger.ts`), true); t.equal(existsSync(`${outdir}/builtintypes/definitions/XsnonNegativeInteger1.ts`), true); @@ -25,10 +25,8 @@ test(target, async t => { t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/builtintypes/index.ts`); - t.end(); + t.end(); }); - }); - diff --git a/test/node-soap/common.test.ts b/test/node-soap/common.test.ts index 273065dd..18506ebd 100644 --- a/test/node-soap/common.test.ts +++ b/test/node-soap/common.test.ts @@ -6,20 +6,19 @@ import { typecheck } from "../utils/tsc"; const target = "Common"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.xsd`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/common/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/connection/econnrefused.test.ts b/test/node-soap/connection/econnrefused.test.ts index 9a139938..2302d60b 100644 --- a/test/node-soap/connection/econnrefused.test.ts +++ b/test/node-soap/connection/econnrefused.test.ts @@ -6,20 +6,19 @@ import { typecheck } from "../../utils/tsc"; const target = "connection/econnrefused"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated/connection"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { try { - await parseAndGenerate(input, outdir) + await parseAndGenerate(input, outdir); t.fail("Should throw error ECONNREFUSED 127.0.0.1:1"); } catch (err) { t.ok(err, "Got error"); } t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/cross_schema.test.ts b/test/node-soap/cross_schema.test.ts index 3f07b1cd..5fb641d1 100644 --- a/test/node-soap/cross_schema.test.ts +++ b/test/node-soap/cross_schema.test.ts @@ -6,18 +6,18 @@ import { typecheck } from "../utils/tsc"; const target = "cross_schema"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/crossschema/definitions/OperationResponse.ts`), true); t.equal(existsSync(`${outdir}/crossschema/definitions/OperationReturn.ts`), true); t.end(); @@ -26,7 +26,6 @@ test(target, async t => { // TODO: Finish // t.test(`${target} - compile`, async t => { // await typecheck(`${outdir}/crossschema/index.ts`); - // t.end(); + // t.end(); // }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/default_namespace.test.ts b/test/node-soap/default_namespace.test.ts index 03c2c204..e665f243 100644 --- a/test/node-soap/default_namespace.test.ts +++ b/test/node-soap/default_namespace.test.ts @@ -6,27 +6,26 @@ import { typecheck } from "../utils/tsc"; const target = "default_namespace"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/defaultnamespace/definitions/Request.ts`), true); t.equal(existsSync(`${outdir}/defaultnamespace/definitions/Response.ts`), true); t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/defaultnamespace/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/default_namespace_schema_soap12.test.ts b/test/node-soap/default_namespace_schema_soap12.test.ts index ce29c012..cca3da49 100644 --- a/test/node-soap/default_namespace_schema_soap12.test.ts +++ b/test/node-soap/default_namespace_schema_soap12.test.ts @@ -6,26 +6,25 @@ import { typecheck } from "../utils/tsc"; const target = "default_namespace_soap12"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/defaultnamespacesoap12/definitions/Request.ts`), true); t.equal(existsSync(`${outdir}/defaultnamespacesoap12/definitions/Response.ts`), true); t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/defaultnamespacesoap12/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/dummy.test.ts b/test/node-soap/dummy.test.ts index 1255a477..34ee42a7 100644 --- a/test/node-soap/dummy.test.ts +++ b/test/node-soap/dummy.test.ts @@ -6,18 +6,18 @@ import { typecheck } from "../utils/tsc"; const target = "Dummy"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/dummy/definitions/DummyList.ts`), true); t.equal(existsSync(`${outdir}/dummy/definitions/DummyRequest.ts`), true); t.equal(existsSync(`${outdir}/dummy/definitions/DummyResponse.ts`), true); @@ -25,9 +25,8 @@ test(target, async t => { t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/dummy/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/elementref/bar.test.ts b/test/node-soap/elementref/bar.test.ts index 4d7e89aa..ee3bd870 100644 --- a/test/node-soap/elementref/bar.test.ts +++ b/test/node-soap/elementref/bar.test.ts @@ -6,20 +6,19 @@ import { typecheck } from "../../utils/tsc"; const target = "elementref/bar"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.xsd`; const outdir = "./test/generated/elementref"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/bar/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/elementref/bar1.test.ts b/test/node-soap/elementref/bar1.test.ts index 5745c103..fd54f976 100644 --- a/test/node-soap/elementref/bar1.test.ts +++ b/test/node-soap/elementref/bar1.test.ts @@ -6,20 +6,19 @@ import { typecheck } from "../../utils/tsc"; const target = "elementref/bar1"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.xsd`; const outdir = "./test/generated/elementref"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/bar1/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/elementref/foo.test.ts b/test/node-soap/elementref/foo.test.ts index 1eea88cc..77ff20a3 100644 --- a/test/node-soap/elementref/foo.test.ts +++ b/test/node-soap/elementref/foo.test.ts @@ -6,18 +6,18 @@ import { typecheck } from "../../utils/tsc"; const target = "elementref/foo"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated/elementref"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/foo/definitions/BankSvcRq.ts`), true); t.equal(existsSync(`${outdir}/foo/definitions/BankSvcRs.ts`), true); t.equal(existsSync(`${outdir}/foo/definitions/FooRq.ts`), true); @@ -27,9 +27,8 @@ test(target, async t => { t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/foo/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/empty_body.test.ts b/test/node-soap/empty_body.test.ts index 10e84c05..4a7b0295 100644 --- a/test/node-soap/empty_body.test.ts +++ b/test/node-soap/empty_body.test.ts @@ -6,25 +6,24 @@ import { typecheck } from "../utils/tsc"; const target = "empty_body"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/emptybody/definitions/Request.ts`), true); t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/emptybody/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/extended_element.test.ts b/test/node-soap/extended_element.test.ts index 8daf971a..83ec6872 100644 --- a/test/node-soap/extended_element.test.ts +++ b/test/node-soap/extended_element.test.ts @@ -6,18 +6,18 @@ import { typecheck } from "../utils/tsc"; const target = "extended_element"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/extendedelement/definitions/DummyList.ts`), true); t.equal(existsSync(`${outdir}/extendedelement/definitions/DummyRequest.ts`), true); t.equal(existsSync(`${outdir}/extendedelement/definitions/DummyResponse.ts`), true); @@ -26,9 +26,8 @@ test(target, async t => { t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/extendedelement/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/extended_recursive.test.ts b/test/node-soap/extended_recursive.test.ts index 06d7d5d3..77c91e3d 100644 --- a/test/node-soap/extended_recursive.test.ts +++ b/test/node-soap/extended_recursive.test.ts @@ -6,18 +6,18 @@ import { typecheck } from "../utils/tsc"; const target = "extended_recursive"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/extendedrecursive/definitions/Department.ts`), true); t.equal(existsSync(`${outdir}/extendedrecursive/definitions/GetPerson.ts`), true); t.equal(existsSync(`${outdir}/extendedrecursive/definitions/GetPersonResponse.ts`), true); @@ -25,9 +25,8 @@ test(target, async t => { t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/extendedrecursive/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/extendedname.test.ts b/test/node-soap/extendedname.test.ts index 58ddfeec..9fa4256a 100644 --- a/test/node-soap/extendedname.test.ts +++ b/test/node-soap/extendedname.test.ts @@ -6,20 +6,19 @@ import { typecheck } from "../utils/tsc"; const target = "ExtendedName"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.xsd`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/extendedname/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/include_with_duplicated_namespace.test.ts b/test/node-soap/include_with_duplicated_namespace.test.ts index 7f974cac..518e71f5 100644 --- a/test/node-soap/include_with_duplicated_namespace.test.ts +++ b/test/node-soap/include_with_duplicated_namespace.test.ts @@ -6,18 +6,18 @@ import { typecheck } from "../utils/tsc"; const target = "include_with_duplicated_namespace"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/includewithduplicatednamespace/definitions/DummyList.ts`), true); t.equal(existsSync(`${outdir}/includewithduplicatednamespace/definitions/DummyResponse.ts`), true); t.equal(existsSync(`${outdir}/includewithduplicatednamespace/definitions/DummyResult.ts`), true); @@ -25,9 +25,8 @@ test(target, async t => { t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/includewithduplicatednamespace/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/json_response.test.ts b/test/node-soap/json_response.test.ts index cbf8cf01..d51b1d17 100644 --- a/test/node-soap/json_response.test.ts +++ b/test/node-soap/json_response.test.ts @@ -6,25 +6,24 @@ import { typecheck } from "../utils/tsc"; const target = "json_response"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/jsonresponse/definitions/Request.ts`), true); t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/jsonresponse/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/list_parameter.test.ts b/test/node-soap/list_parameter.test.ts index 39cc46c4..20fcd167 100644 --- a/test/node-soap/list_parameter.test.ts +++ b/test/node-soap/list_parameter.test.ts @@ -6,18 +6,18 @@ import { typecheck } from "../utils/tsc"; const target = "list_parameter"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/listparameter/definitions/About.ts`), true); t.equal(existsSync(`${outdir}/listparameter/definitions/AboutResponse.ts`), true); t.equal(existsSync(`${outdir}/listparameter/definitions/AddTimesheet.ts`), true); @@ -60,7 +60,10 @@ test(target, async t => { t.equal(existsSync(`${outdir}/listparameter/definitions/GetTimesheetValuesResponse.ts`), true); t.equal(existsSync(`${outdir}/listparameter/definitions/GetTimesheetValuesResult.ts`), true); t.equal(existsSync(`${outdir}/listparameter/definitions/GetTimesheetValuesWithRelatedColumns.ts`), true); - t.equal(existsSync(`${outdir}/listparameter/definitions/GetTimesheetValuesWithRelatedColumnsResponse.ts`), true); + t.equal( + existsSync(`${outdir}/listparameter/definitions/GetTimesheetValuesWithRelatedColumnsResponse.ts`), + true + ); t.equal(existsSync(`${outdir}/listparameter/definitions/GetTimesheetWorkSchedule.ts`), true); t.equal(existsSync(`${outdir}/listparameter/definitions/GetTimesheetWorkScheduleResponse.ts`), true); t.equal(existsSync(`${outdir}/listparameter/definitions/GetTimesheetWorkScheduleResult.ts`), true); @@ -91,9 +94,8 @@ test(target, async t => { t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/listparameter/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/marketo.test.ts b/test/node-soap/marketo.test.ts index 139f4e20..8bb7b6c9 100644 --- a/test/node-soap/marketo.test.ts +++ b/test/node-soap/marketo.test.ts @@ -6,27 +6,26 @@ import { typecheck } from "../utils/tsc"; const target = "marketo"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/marketo/definitions/ActivityNameFilter.ts`), true); t.equal(existsSync(`${outdir}/marketo/definitions/TnsparamsGetLeadChanges.ts`), true); t.equal(existsSync(`${outdir}/marketo/definitions/TnssuccessGetLeadChanges.ts`), true); t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/marketo/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/mergeWithAttributes/def.test.ts b/test/node-soap/mergeWithAttributes/def.test.ts index 0e14bf1e..3fad414f 100644 --- a/test/node-soap/mergeWithAttributes/def.test.ts +++ b/test/node-soap/mergeWithAttributes/def.test.ts @@ -6,20 +6,19 @@ import { typecheck } from "../../utils/tsc"; const target = "mergeWithAttributes/def"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.xsd`; const outdir = "./test/generated/mergeWithAttributes"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/def/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/mergeWithAttributes/main.test.ts b/test/node-soap/mergeWithAttributes/main.test.ts index 4c8f26ea..8414a157 100644 --- a/test/node-soap/mergeWithAttributes/main.test.ts +++ b/test/node-soap/mergeWithAttributes/main.test.ts @@ -6,26 +6,25 @@ import { typecheck } from "../../utils/tsc"; const target = "mergeWithAttributes/main"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated/mergeWithAttributes"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/main/definitions/AskPeat.ts`), true); t.equal(existsSync(`${outdir}/main/definitions/AskPeatResponse.ts`), true); t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/main/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/name.test.ts b/test/node-soap/name.test.ts index 052aef54..7e407f08 100644 --- a/test/node-soap/name.test.ts +++ b/test/node-soap/name.test.ts @@ -6,20 +6,19 @@ import { typecheck } from "../utils/tsc"; const target = "Name"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.xsd`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/name/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/non_identifier_chars_in_operation.test.ts b/test/node-soap/non_identifier_chars_in_operation.test.ts index 58fcc17e..6d099e4c 100644 --- a/test/node-soap/non_identifier_chars_in_operation.test.ts +++ b/test/node-soap/non_identifier_chars_in_operation.test.ts @@ -6,18 +6,18 @@ import { typecheck } from "../utils/tsc"; const target = "non_identifier_chars_in_operation"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/nonidentifiercharsinoperation/definitions/Request.ts`), true); t.equal(existsSync(`${outdir}/nonidentifiercharsinoperation/definitions/Response.ts`), true); t.end(); @@ -26,7 +26,6 @@ test(target, async t => { // TODO: Finish // t.test(`${target} - compile`, async t => { // await typecheck(`${outdir}/nonidentifiercharsinoperation/index.ts`); - // t.end(); + // t.end(); // }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/recursive.test.ts b/test/node-soap/recursive.test.ts index f63ff0cf..5cc23791 100644 --- a/test/node-soap/recursive.test.ts +++ b/test/node-soap/recursive.test.ts @@ -5,19 +5,19 @@ import { Logger } from "../../src/utils/logger"; const target = "recursive"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { // TODO: Fix this issue // await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { // t.equal(existsSync(`${outdir}/recursive/definitions/ActivityNameFilter.ts`), true); // t.equal(existsSync(`${outdir}/recursive/definitions/TnsparamsGetLeadChanges.ts`), true); // t.equal(existsSync(`${outdir}/recursive/definitions/TnssuccessGetLeadChanges.ts`), true); @@ -27,5 +27,4 @@ test(target, async t => { // t.test(`${target} - compile`, async t => { // await typecheck(`${outdir}/arraynamespaceoverride/index.ts`); // }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/recursive/A.test.ts b/test/node-soap/recursive/A.test.ts index cfacab0a..75371555 100644 --- a/test/node-soap/recursive/A.test.ts +++ b/test/node-soap/recursive/A.test.ts @@ -6,13 +6,13 @@ import { typecheck } from "../../utils/tsc"; const target = "recursive/A"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.xsd`; const outdir = "./test/generated/recursive"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); @@ -27,9 +27,8 @@ test(target, async t => { // t.end(); // }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/a/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/recursive/B.test.ts b/test/node-soap/recursive/B.test.ts index 2cd16079..97d61c31 100644 --- a/test/node-soap/recursive/B.test.ts +++ b/test/node-soap/recursive/B.test.ts @@ -6,13 +6,13 @@ import { typecheck } from "../../utils/tsc"; const target = "recursive/B"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.xsd`; const outdir = "./test/generated/recursive"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); @@ -27,9 +27,8 @@ test(target, async t => { // t.end(); // }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/b/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/recursive/file.test.ts b/test/node-soap/recursive/file.test.ts index fa2211df..b99f64fc 100644 --- a/test/node-soap/recursive/file.test.ts +++ b/test/node-soap/recursive/file.test.ts @@ -6,18 +6,18 @@ import { typecheck } from "../../utils/tsc"; const target = "recursive/file"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated/elementref"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/foo/definitions/BankSvcRq.ts`), true); t.equal(existsSync(`${outdir}/foo/definitions/BankSvcRs.ts`), true); t.equal(existsSync(`${outdir}/foo/definitions/FooRq.ts`), true); @@ -27,9 +27,8 @@ test(target, async t => { t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/file/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/recursive2.test.ts b/test/node-soap/recursive2.test.ts index a3058081..14a4df6b 100644 --- a/test/node-soap/recursive2.test.ts +++ b/test/node-soap/recursive2.test.ts @@ -6,18 +6,18 @@ import { typecheck } from "../utils/tsc"; const target = "recursive2"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/recursive2/definitions/AccountElement.ts`), true); t.equal(existsSync(`${outdir}/recursive2/definitions/AccountElements.ts`), true); t.equal(existsSync(`${outdir}/recursive2/definitions/AddAttribute.ts`), true); @@ -36,9 +36,8 @@ test(target, async t => { t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/recursive2/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/redefined-ns.test.ts b/test/node-soap/redefined-ns.test.ts index 629e0789..cbad16f2 100644 --- a/test/node-soap/redefined-ns.test.ts +++ b/test/node-soap/redefined-ns.test.ts @@ -6,18 +6,18 @@ import { typecheck } from "../utils/tsc"; const target = "redefined-ns"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/redefinedns/definitions/VerificationData.ts`), true); t.equal(existsSync(`${outdir}/redefinedns/definitions/VerificationRequest.ts`), true); t.equal(existsSync(`${outdir}/redefinedns/definitions/Verify.ts`), true); @@ -26,9 +26,8 @@ test(target, async t => { t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/redefinedns/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/rpcexample.test.ts b/test/node-soap/rpcexample.test.ts index fa5996e2..f9de6539 100644 --- a/test/node-soap/rpcexample.test.ts +++ b/test/node-soap/rpcexample.test.ts @@ -5,13 +5,13 @@ import { Logger } from "../../src/utils/logger"; const target = "rpcexample"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { // TODO: Fix this issue // await parseAndGenerate(input, outdir); t.end(); @@ -20,5 +20,4 @@ test(target, async t => { // t.test(`${target} - compile`, async t => { // await typecheck(`${outdir}/arraynamespaceoverride/index.ts`); // }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/self_recursive.test.ts b/test/node-soap/self_recursive.test.ts index e058bdbb..6869b96b 100644 --- a/test/node-soap/self_recursive.test.ts +++ b/test/node-soap/self_recursive.test.ts @@ -5,22 +5,22 @@ import { Logger } from "../../src/utils/logger"; const target = "self_recursive"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/selfrecursive/definitions/GetPerson.ts`), true); t.equal(existsSync(`${outdir}/selfrecursive/definitions/GetPersonResponse.ts`), true); t.equal(existsSync(`${outdir}/selfrecursive/definitions/Person.ts`), true); t.equal(existsSync(`${outdir}/selfrecursive/definitions/Request.ts`), true); t.end(); }); -}); \ No newline at end of file +}); diff --git a/test/node-soap/self_referencing.test.ts b/test/node-soap/self_referencing.test.ts index 2802d67d..c2b162b7 100644 --- a/test/node-soap/self_referencing.test.ts +++ b/test/node-soap/self_referencing.test.ts @@ -6,20 +6,19 @@ import { typecheck } from "../utils/tsc"; const target = "self_referencing"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/selfreferencing/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/strict/CyberSourceTransaction_1.26-xsd.test.ts b/test/node-soap/strict/CyberSourceTransaction_1.26-xsd.test.ts index 76643c5a..b4f59062 100644 --- a/test/node-soap/strict/CyberSourceTransaction_1.26-xsd.test.ts +++ b/test/node-soap/strict/CyberSourceTransaction_1.26-xsd.test.ts @@ -6,13 +6,13 @@ import { typecheck } from "../../utils/tsc"; const target = "strict/CyberSourceTransaction_1.26"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.xsd`; const outdir = "./test/generated/strict-xsd"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); @@ -27,9 +27,8 @@ test(target, async t => { // t.end(); // }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/cybersourcetransaction126/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/strict/CyberSourceTransaction_1.26.test.ts b/test/node-soap/strict/CyberSourceTransaction_1.26.test.ts index 0598cdfd..16895fe0 100644 --- a/test/node-soap/strict/CyberSourceTransaction_1.26.test.ts +++ b/test/node-soap/strict/CyberSourceTransaction_1.26.test.ts @@ -6,13 +6,13 @@ import { typecheck } from "../../utils/tsc"; const target = "strict/CyberSourceTransaction_1.26"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated/strict"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); @@ -27,9 +27,8 @@ test(target, async t => { // t.end(); // }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/cybersourcetransaction126/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/strict/CyberSourceTransaction_1.26_2.test.ts b/test/node-soap/strict/CyberSourceTransaction_1.26_2.test.ts index 09cf8403..963e9857 100644 --- a/test/node-soap/strict/CyberSourceTransaction_1.26_2.test.ts +++ b/test/node-soap/strict/CyberSourceTransaction_1.26_2.test.ts @@ -6,13 +6,13 @@ import { typecheck } from "../../utils/tsc"; const target = "strict/CyberSourceTransaction_1.26_2"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated/strict"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); @@ -27,9 +27,8 @@ test(target, async t => { // t.end(); // }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/cybersourcetransaction1262/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/strict/CyberSourceTransaction_1.26_3.test.ts b/test/node-soap/strict/CyberSourceTransaction_1.26_3.test.ts index 6098a04b..b5104d6e 100644 --- a/test/node-soap/strict/CyberSourceTransaction_1.26_3.test.ts +++ b/test/node-soap/strict/CyberSourceTransaction_1.26_3.test.ts @@ -6,13 +6,13 @@ import { typecheck } from "../../utils/tsc"; const target = "strict/CyberSourceTransaction_1.26_3"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated/strict"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); @@ -27,9 +27,8 @@ test(target, async t => { // t.end(); // }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/cybersourcetransaction1263/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/strict/EVacSyncService_SPClient.test.ts b/test/node-soap/strict/EVacSyncService_SPClient.test.ts index fc657bcd..2e656f8d 100644 --- a/test/node-soap/strict/EVacSyncService_SPClient.test.ts +++ b/test/node-soap/strict/EVacSyncService_SPClient.test.ts @@ -5,21 +5,20 @@ import { typecheck } from "../../utils/tsc"; const target = "strict/EVacSyncService_SPClient"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated/strict"; // // TODO: Failing test because of cycling dependency - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/evacsyncservicespclient/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/typeof_null_extend_check.test.ts b/test/node-soap/typeof_null_extend_check.test.ts index caaaa2fc..c67df0e5 100644 --- a/test/node-soap/typeof_null_extend_check.test.ts +++ b/test/node-soap/typeof_null_extend_check.test.ts @@ -6,26 +6,25 @@ import { typecheck } from "../utils/tsc"; const target = "typeof_null_extend_check"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/typeofnullextendcheck/definitions/QaSearch.ts`), true); t.equal(existsSync(`${outdir}/typeofnullextendcheck/definitions/QaSearchResult.ts`), true); t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/typeofnullextendcheck/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/node-soap/ws-policy.test.ts b/test/node-soap/ws-policy.test.ts index 113d72c7..a31bcdab 100644 --- a/test/node-soap/ws-policy.test.ts +++ b/test/node-soap/ws-policy.test.ts @@ -6,18 +6,18 @@ import { typecheck } from "../utils/tsc"; const target = "ws-policy"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/wspolicy/definitions/DummyList.ts`), true); t.equal(existsSync(`${outdir}/wspolicy/definitions/DummyRequest.ts`), true); t.equal(existsSync(`${outdir}/wspolicy/definitions/DummyResponse.ts`), true); @@ -25,9 +25,8 @@ test(target, async t => { t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/wspolicy/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +}); diff --git a/test/resources-public/Human_Resources.test.ts b/test/resources-public/Human_Resources.test.ts index ee5ffc70..003bccd3 100644 --- a/test/resources-public/Human_Resources.test.ts +++ b/test/resources-public/Human_Resources.test.ts @@ -5,21 +5,21 @@ import { Logger } from "../../src/utils/logger"; const target = "Human_Resources"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); Logger.isWarn = true; const input = `./test/resources-public/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir, { maxRecursiveDefinitionName: 85 }); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { // TODO: Add more definitions to check t.equal(existsSync(`${outdir}/humanresources/definitions/AcademicAppointee.ts`), true); t.end(); }); -}); \ No newline at end of file +}); diff --git a/test/resources-public/products.test.ts b/test/resources-public/products.test.ts index 47c0224d..4323333c 100644 --- a/test/resources-public/products.test.ts +++ b/test/resources-public/products.test.ts @@ -6,25 +6,24 @@ import { typecheck } from "../utils/tsc"; const target = "products"; -test(target, async t => { +test(target, async (t) => { Logger.disabled(); const input = `./test/resources-public/${target}.wsdl`; const outdir = "./test/generated"; - t.test(`${target} - generate wsdl client`, async t => { + t.test(`${target} - generate wsdl client`, async (t) => { await parseAndGenerate(input, outdir); t.end(); }); - t.test(`${target} - check definitions`, async t => { + t.test(`${target} - check definitions`, async (t) => { t.equal(existsSync(`${outdir}/products/definitions/KeyValuePair.ts`), true); t.end(); }); - t.test(`${target} - compile`, async t => { + t.test(`${target} - compile`, async (t) => { await typecheck(`${outdir}/products/index.ts`); - t.end(); + t.end(); }); - -}); \ No newline at end of file +});