Skip to content

Commit 548e4b6

Browse files
authored
chore(service-types-generator): fix unit tests in code generator to conform prettier (#237)
1 parent 2d729b6 commit 548e4b6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+817
-791
lines changed

Diff for: packages/client-cognito-identity-browser/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ To send a request, you:
4747
const cognitoIdentity = new CognitoIdentityClient({region: 'region'});
4848
//clients can be shared by different commands
4949
const params = {
50-
IdentityPoolName: /**a string value*/,
51-
AllowUnauthenticatedIdentities: /**a boolean value*/,
50+
IdentityPoolName: /**a string value*/,
51+
AllowUnauthenticatedIdentities: /**a boolean value*/,
5252
};
5353
const createIdentityPoolCommand = new CreateIdentityPoolCommand(params);
5454
cognitoIdentity.send(createIdentityPoolCommand).then(data => {

Diff for: packages/client-dynamodb-browser/karma.conf

+44-44
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
// Karma configuration
2-
process.env.CHROME_BIN = require('puppeteer').executablePath();
2+
process.env.CHROME_BIN = require("puppeteer").executablePath();
33

44
module.exports = function(config) {
5-
config.set({
6-
basePath: '',
7-
frameworks: ['jasmine', 'karma-typescript'],
8-
files: [
9-
'test/smoke/*.spec.ts',
10-
'commands/*.ts',
11-
'model/*.ts',
12-
'types/*.ts',
13-
'*.ts'
14-
],
15-
preprocessors: {
16-
'test/smoke/index.spec.ts': 'credentials',
17-
'**/*.ts': 'karma-typescript'
18-
},
19-
plugins: [
20-
'@aws-sdk/karma-credential-loader',
21-
'karma-chrome-launcher',
22-
'karma-coverage',
23-
'karma-jasmine',
24-
'karma-typescript'
25-
],
26-
reporters: ['progress', 'karma-typescript'],
27-
karmaTypescriptConfig: {
28-
tsconfig: './tsconfig.json',
29-
bundlerOptions: {
30-
addNodeGlobals: false
31-
}
32-
},
33-
port: 9876,
34-
colors: false,
35-
logLevel: config.LOG_INFO,
36-
autoWatch: false,
37-
browsers: ['ChromeHeadlessDisableCors'],
38-
customLaunchers: {
39-
ChromeHeadlessDisableCors: {
40-
base: 'ChromeHeadless',
41-
flags: ['--disable-web-security']
42-
}
43-
},
44-
singleRun: true,
45-
concurrency: Infinity,
46-
exclude: ['**/*.d.ts']
47-
});
5+
config.set({
6+
basePath: "",
7+
frameworks: ["jasmine", "karma-typescript"],
8+
files: [
9+
"test/smoke/*.spec.ts",
10+
"commands/*.ts",
11+
"model/*.ts",
12+
"types/*.ts",
13+
"*.ts"
14+
],
15+
preprocessors: {
16+
"test/smoke/index.spec.ts": "credentials",
17+
"**/*.ts": "karma-typescript"
18+
},
19+
plugins: [
20+
"@aws-sdk/karma-credential-loader",
21+
"karma-chrome-launcher",
22+
"karma-coverage",
23+
"karma-jasmine",
24+
"karma-typescript"
25+
],
26+
reporters: ["progress", "karma-typescript"],
27+
karmaTypescriptConfig: {
28+
tsconfig: "./tsconfig.json",
29+
bundlerOptions: {
30+
addNodeGlobals: false
31+
}
32+
},
33+
port: 9876,
34+
colors: false,
35+
logLevel: config.LOG_INFO,
36+
autoWatch: false,
37+
browsers: ["ChromeHeadlessDisableCors"],
38+
customLaunchers: {
39+
ChromeHeadlessDisableCors: {
40+
base: "ChromeHeadless",
41+
flags: ["--disable-web-security"]
42+
}
43+
},
44+
singleRun: true,
45+
concurrency: Infinity,
46+
exclude: ["**/*.d.ts"]
47+
});
4848
};

Diff for: packages/client-glacier-node/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ To send a request, you:
4545
const glacier = new GlacierClient({region: 'region'});
4646
//clients can be shared by different commands
4747
const params = {
48-
vaultName: /**a string value*/,
49-
accountId: /**a string value*/,
50-
body: /**a blob value*/
51-
/**You can supply readable stream to streaming input. e.g. fs.createReadStream(file) */,
48+
vaultName: /**a string value*/,
49+
accountId: /**a string value*/,
50+
body: /**a blob value*/
51+
/**You can supply readable stream to streaming input. e.g. fs.createReadStream(file) */,
5252
};
5353
const uploadArchiveCommand = new UploadArchiveCommand(params);
5454
glacier.send(uploadArchiveCommand).then(data => {

Diff for: packages/client-kinesis-browser/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ To send a request, you:
4747
const kinesis = new KinesisClient({region: 'region'});
4848
//clients can be shared by different commands
4949
const params = {
50-
StreamName: /**a string value*/,
51-
Tags: { /**a map with key of string and value of string*/ },
50+
StreamName: /**a string value*/,
51+
Tags: { /**a map with key of string and value of string*/ },
5252
};
5353
const addTagsToStreamCommand = new AddTagsToStreamCommand(params);
5454
kinesis.send(addTagsToStreamCommand).then(data => {

Diff for: packages/client-kinesis-browser/karma.conf

+44-44
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
// Karma configuration
2-
process.env.CHROME_BIN = require('puppeteer').executablePath();
2+
process.env.CHROME_BIN = require("puppeteer").executablePath();
33

44
module.exports = function(config) {
5-
config.set({
6-
basePath: '',
7-
frameworks: ['jasmine', 'karma-typescript'],
8-
files: [
9-
'test/smoke/*.spec.ts',
10-
'commands/*.ts',
11-
'model/*.ts',
12-
'types/*.ts',
13-
'*.ts'
14-
],
15-
preprocessors: {
16-
'test/smoke/index.spec.ts': 'credentials',
17-
'**/*.ts': 'karma-typescript'
18-
},
19-
plugins: [
20-
'@aws-sdk/karma-credential-loader',
21-
'karma-chrome-launcher',
22-
'karma-coverage',
23-
'karma-jasmine',
24-
'karma-typescript'
25-
],
26-
reporters: ['progress', 'karma-typescript'],
27-
karmaTypescriptConfig: {
28-
tsconfig: './tsconfig.json',
29-
bundlerOptions: {
30-
addNodeGlobals: false
31-
}
32-
},
33-
port: 9876,
34-
colors: false,
35-
logLevel: config.LOG_INFO,
36-
autoWatch: false,
37-
browsers: ['ChromeHeadlessDisableCors'],
38-
customLaunchers: {
39-
ChromeHeadlessDisableCors: {
40-
base: 'ChromeHeadless',
41-
flags: ['--disable-web-security']
42-
}
43-
},
44-
singleRun: true,
45-
concurrency: Infinity,
46-
exclude: ['**/*.d.ts']
47-
});
5+
config.set({
6+
basePath: "",
7+
frameworks: ["jasmine", "karma-typescript"],
8+
files: [
9+
"test/smoke/*.spec.ts",
10+
"commands/*.ts",
11+
"model/*.ts",
12+
"types/*.ts",
13+
"*.ts"
14+
],
15+
preprocessors: {
16+
"test/smoke/index.spec.ts": "credentials",
17+
"**/*.ts": "karma-typescript"
18+
},
19+
plugins: [
20+
"@aws-sdk/karma-credential-loader",
21+
"karma-chrome-launcher",
22+
"karma-coverage",
23+
"karma-jasmine",
24+
"karma-typescript"
25+
],
26+
reporters: ["progress", "karma-typescript"],
27+
karmaTypescriptConfig: {
28+
tsconfig: "./tsconfig.json",
29+
bundlerOptions: {
30+
addNodeGlobals: false
31+
}
32+
},
33+
port: 9876,
34+
colors: false,
35+
logLevel: config.LOG_INFO,
36+
autoWatch: false,
37+
browsers: ["ChromeHeadlessDisableCors"],
38+
customLaunchers: {
39+
ChromeHeadlessDisableCors: {
40+
base: "ChromeHeadless",
41+
flags: ["--disable-web-security"]
42+
}
43+
},
44+
singleRun: true,
45+
concurrency: Infinity,
46+
exclude: ["**/*.d.ts"]
47+
});
4848
};

Diff for: packages/client-kms-browser/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ To send a request, you:
4545
const kMS = new KMSClient({region: 'region'});
4646
//clients can be shared by different commands
4747
const params = {
48-
KeyId: /**a string value*/,
48+
KeyId: /**a string value*/,
4949
};
5050
const cancelKeyDeletionCommand = new CancelKeyDeletionCommand(params);
5151
kMS.send(cancelKeyDeletionCommand).then(data => {

Diff for: packages/client-kms-browser/karma.conf

+44-44
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
// Karma configuration
2-
process.env.CHROME_BIN = require('puppeteer').executablePath();
2+
process.env.CHROME_BIN = require("puppeteer").executablePath();
33

44
module.exports = function(config) {
5-
config.set({
6-
basePath: '',
7-
frameworks: ['jasmine', 'karma-typescript'],
8-
files: [
9-
'test/smoke/*.spec.ts',
10-
'commands/*.ts',
11-
'model/*.ts',
12-
'types/*.ts',
13-
'*.ts'
14-
],
15-
preprocessors: {
16-
'test/smoke/index.spec.ts': 'credentials',
17-
'**/*.ts': 'karma-typescript'
18-
},
19-
plugins: [
20-
'@aws-sdk/karma-credential-loader',
21-
'karma-chrome-launcher',
22-
'karma-coverage',
23-
'karma-jasmine',
24-
'karma-typescript'
25-
],
26-
reporters: ['progress', 'karma-typescript'],
27-
karmaTypescriptConfig: {
28-
tsconfig: './tsconfig.json',
29-
bundlerOptions: {
30-
addNodeGlobals: false
31-
}
32-
},
33-
port: 9876,
34-
colors: false,
35-
logLevel: config.LOG_INFO,
36-
autoWatch: false,
37-
browsers: ['ChromeHeadlessDisableCors'],
38-
customLaunchers: {
39-
ChromeHeadlessDisableCors: {
40-
base: 'ChromeHeadless',
41-
flags: ['--disable-web-security']
42-
}
43-
},
44-
singleRun: true,
45-
concurrency: Infinity,
46-
exclude: ['**/*.d.ts']
47-
});
5+
config.set({
6+
basePath: "",
7+
frameworks: ["jasmine", "karma-typescript"],
8+
files: [
9+
"test/smoke/*.spec.ts",
10+
"commands/*.ts",
11+
"model/*.ts",
12+
"types/*.ts",
13+
"*.ts"
14+
],
15+
preprocessors: {
16+
"test/smoke/index.spec.ts": "credentials",
17+
"**/*.ts": "karma-typescript"
18+
},
19+
plugins: [
20+
"@aws-sdk/karma-credential-loader",
21+
"karma-chrome-launcher",
22+
"karma-coverage",
23+
"karma-jasmine",
24+
"karma-typescript"
25+
],
26+
reporters: ["progress", "karma-typescript"],
27+
karmaTypescriptConfig: {
28+
tsconfig: "./tsconfig.json",
29+
bundlerOptions: {
30+
addNodeGlobals: false
31+
}
32+
},
33+
port: 9876,
34+
colors: false,
35+
logLevel: config.LOG_INFO,
36+
autoWatch: false,
37+
browsers: ["ChromeHeadlessDisableCors"],
38+
customLaunchers: {
39+
ChromeHeadlessDisableCors: {
40+
base: "ChromeHeadless",
41+
flags: ["--disable-web-security"]
42+
}
43+
},
44+
singleRun: true,
45+
concurrency: Infinity,
46+
exclude: ["**/*.d.ts"]
47+
});
4848
};

Diff for: packages/client-kms-node/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ To send a request, you:
4545
const kMS = new KMSClient({region: 'region'});
4646
//clients can be shared by different commands
4747
const params = {
48-
KeyId: /**a string value*/,
48+
KeyId: /**a string value*/,
4949
};
5050
const cancelKeyDeletionCommand = new CancelKeyDeletionCommand(params);
5151
kMS.send(cancelKeyDeletionCommand).then(data => {

Diff for: packages/client-lambda-node/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ To send a request, you:
4545
const lambda = new LambdaClient({region: 'region'});
4646
//clients can be shared by different commands
4747
const params = {
48-
FunctionName: /**a string value*/,
49-
InvokeArgs: /**a blob value*/
50-
/**You can supply readable stream to streaming input. e.g. fs.createReadStream(file) */,
48+
FunctionName: /**a string value*/,
49+
InvokeArgs: /**a blob value*/
50+
/**You can supply readable stream to streaming input. e.g. fs.createReadStream(file) */,
5151
};
5252
const invokeAsyncCommand = new InvokeAsyncCommand(params);
5353
lambda.send(invokeAsyncCommand).then(data => {

0 commit comments

Comments
 (0)