From 09c540fe82cfa5d8eeeae5cba790a2ffe0c204a0 Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Sun, 6 Jun 2021 23:14:42 +0000 Subject: [PATCH] fix(protocol_tests): format files using prettier v2.3.0 --- .../aws-ec2/tests/functional/ec2query.spec.ts | 6 ++- .../tests/functional/awsquery.spec.ts | 6 ++- .../tests/functional/restjson1.spec.ts | 52 ++++++++++++++++--- .../tests/functional/restxml.spec.ts | 52 ++++++++++++++++--- 4 files changed, 100 insertions(+), 16 deletions(-) diff --git a/protocol_tests/aws-ec2/tests/functional/ec2query.spec.ts b/protocol_tests/aws-ec2/tests/functional/ec2query.spec.ts index ecc2a7140f7e3..4c1e42aa81695 100644 --- a/protocol_tests/aws-ec2/tests/functional/ec2query.spec.ts +++ b/protocol_tests/aws-ec2/tests/functional/ec2query.spec.ts @@ -1763,7 +1763,11 @@ it("Ec2XmlLists:Response", async () => { stringSet: ["foo", "bar"], - integerList: [1, 2], + integerList: [ + 1, + + 2, + ], booleanList: [true, false], diff --git a/protocol_tests/aws-query/tests/functional/awsquery.spec.ts b/protocol_tests/aws-query/tests/functional/awsquery.spec.ts index facdf7b980c2b..c00eee2f410bd 100644 --- a/protocol_tests/aws-query/tests/functional/awsquery.spec.ts +++ b/protocol_tests/aws-query/tests/functional/awsquery.spec.ts @@ -2339,7 +2339,11 @@ it("QueryXmlLists:Response", async () => { stringSet: ["foo", "bar"], - integerList: [1, 2], + integerList: [ + 1, + + 2, + ], booleanList: [true, false], diff --git a/protocol_tests/aws-restjson/tests/functional/restjson1.spec.ts b/protocol_tests/aws-restjson/tests/functional/restjson1.spec.ts index 52c2be52bf30f..cf147987cc50d 100644 --- a/protocol_tests/aws-restjson/tests/functional/restjson1.spec.ts +++ b/protocol_tests/aws-restjson/tests/functional/restjson1.spec.ts @@ -197,9 +197,21 @@ it("RestJsonAllQueryStringTypes:Request", async () => { queryInteger: 3, - queryIntegerList: [1, 2, 3], + queryIntegerList: [ + 1, - queryIntegerSet: [1, 2, 3], + 2, + + 3, + ], + + queryIntegerSet: [ + 1, + + 2, + + 3, + ], queryLong: 4, @@ -207,7 +219,13 @@ it("RestJsonAllQueryStringTypes:Request", async () => { queryDouble: 1.1, - queryDoubleList: [1.1, 2.1, 3.1], + queryDoubleList: [ + 1.1, + + 2.1, + + 3.1, + ], queryBoolean: true, @@ -2163,7 +2181,13 @@ it("RestJsonInputAndOutputWithNumericHeaders:Request", async () => { headerDouble: 1.1, - headerIntegerList: [1, 2, 3], + headerIntegerList: [ + 1, + + 2, + + 3, + ], } as any); try { await client.send(command); @@ -2386,7 +2410,13 @@ it("RestJsonInputAndOutputWithNumericHeaders:Response", async () => { headerDouble: 1.1, - headerIntegerList: [1, 2, 3], + headerIntegerList: [ + 1, + + 2, + + 3, + ], }, ][0]; Object.keys(paramsToValidate).forEach((param) => { @@ -2729,7 +2759,11 @@ it("RestJsonLists:Request", async () => { stringSet: ["foo", "bar"], - integerList: [1, 2], + integerList: [ + 1, + + 2, + ], booleanList: [true, false], @@ -2983,7 +3017,11 @@ it("RestJsonLists:Response", async () => { stringSet: ["foo", "bar"], - integerList: [1, 2], + integerList: [ + 1, + + 2, + ], booleanList: [true, false], diff --git a/protocol_tests/aws-restxml/tests/functional/restxml.spec.ts b/protocol_tests/aws-restxml/tests/functional/restxml.spec.ts index 633abe9ba265a..cd1bb0cd63a34 100644 --- a/protocol_tests/aws-restxml/tests/functional/restxml.spec.ts +++ b/protocol_tests/aws-restxml/tests/functional/restxml.spec.ts @@ -208,9 +208,21 @@ it("AllQueryStringTypes:Request", async () => { queryInteger: 3, - queryIntegerList: [1, 2, 3], + queryIntegerList: [ + 1, - queryIntegerSet: [1, 2, 3], + 2, + + 3, + ], + + queryIntegerSet: [ + 1, + + 2, + + 3, + ], queryLong: 4, @@ -218,7 +230,13 @@ it("AllQueryStringTypes:Request", async () => { queryDouble: 1.1, - queryDoubleList: [1.1, 2.1, 3.1], + queryDoubleList: [ + 1.1, + + 2.1, + + 3.1, + ], queryBoolean: true, @@ -2119,7 +2137,13 @@ it("InputAndOutputWithNumericHeaders:Request", async () => { headerDouble: 1.1, - headerIntegerList: [1, 2, 3], + headerIntegerList: [ + 1, + + 2, + + 3, + ], } as any); try { await client.send(command); @@ -2352,7 +2376,13 @@ it("InputAndOutputWithNumericHeaders:Response", async () => { headerDouble: 1.1, - headerIntegerList: [1, 2, 3], + headerIntegerList: [ + 1, + + 2, + + 3, + ], }, ][0]; Object.keys(paramsToValidate).forEach((param) => { @@ -4495,7 +4525,11 @@ it("XmlLists:Request", async () => { stringSet: ["foo", "bar"], - integerList: [1, 2], + integerList: [ + 1, + + 2, + ], booleanList: [true, false], @@ -4728,7 +4762,11 @@ it("XmlLists:Response", async () => { stringSet: ["foo", "bar"], - integerList: [1, 2], + integerList: [ + 1, + + 2, + ], booleanList: [true, false],