Skip to content

Commit

Permalink
chore(service-types-generator): fix unit tests in code generator to c…
Browse files Browse the repository at this point in the history
…onform prettier (#237)
  • Loading branch information
AllanZhengYP authored May 3, 2019
1 parent 2d729b6 commit 548e4b6
Show file tree
Hide file tree
Showing 46 changed files with 817 additions and 791 deletions.
4 changes: 2 additions & 2 deletions packages/client-cognito-identity-browser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ To send a request, you:
const cognitoIdentity = new CognitoIdentityClient({region: 'region'});
//clients can be shared by different commands
const params = {
IdentityPoolName: /**a string value*/,
AllowUnauthenticatedIdentities: /**a boolean value*/,
IdentityPoolName: /**a string value*/,
AllowUnauthenticatedIdentities: /**a boolean value*/,
};
const createIdentityPoolCommand = new CreateIdentityPoolCommand(params);
cognitoIdentity.send(createIdentityPoolCommand).then(data => {
Expand Down
88 changes: 44 additions & 44 deletions packages/client-dynamodb-browser/karma.conf
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
// Karma configuration
process.env.CHROME_BIN = require('puppeteer').executablePath();
process.env.CHROME_BIN = require("puppeteer").executablePath();

module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine', 'karma-typescript'],
files: [
'test/smoke/*.spec.ts',
'commands/*.ts',
'model/*.ts',
'types/*.ts',
'*.ts'
],
preprocessors: {
'test/smoke/index.spec.ts': 'credentials',
'**/*.ts': 'karma-typescript'
},
plugins: [
'@aws-sdk/karma-credential-loader',
'karma-chrome-launcher',
'karma-coverage',
'karma-jasmine',
'karma-typescript'
],
reporters: ['progress', 'karma-typescript'],
karmaTypescriptConfig: {
tsconfig: './tsconfig.json',
bundlerOptions: {
addNodeGlobals: false
}
},
port: 9876,
colors: false,
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: ['ChromeHeadlessDisableCors'],
customLaunchers: {
ChromeHeadlessDisableCors: {
base: 'ChromeHeadless',
flags: ['--disable-web-security']
}
},
singleRun: true,
concurrency: Infinity,
exclude: ['**/*.d.ts']
});
config.set({
basePath: "",
frameworks: ["jasmine", "karma-typescript"],
files: [
"test/smoke/*.spec.ts",
"commands/*.ts",
"model/*.ts",
"types/*.ts",
"*.ts"
],
preprocessors: {
"test/smoke/index.spec.ts": "credentials",
"**/*.ts": "karma-typescript"
},
plugins: [
"@aws-sdk/karma-credential-loader",
"karma-chrome-launcher",
"karma-coverage",
"karma-jasmine",
"karma-typescript"
],
reporters: ["progress", "karma-typescript"],
karmaTypescriptConfig: {
tsconfig: "./tsconfig.json",
bundlerOptions: {
addNodeGlobals: false
}
},
port: 9876,
colors: false,
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: ["ChromeHeadlessDisableCors"],
customLaunchers: {
ChromeHeadlessDisableCors: {
base: "ChromeHeadless",
flags: ["--disable-web-security"]
}
},
singleRun: true,
concurrency: Infinity,
exclude: ["**/*.d.ts"]
});
};
8 changes: 4 additions & 4 deletions packages/client-glacier-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ To send a request, you:
const glacier = new GlacierClient({region: 'region'});
//clients can be shared by different commands
const params = {
vaultName: /**a string value*/,
accountId: /**a string value*/,
body: /**a blob value*/
/**You can supply readable stream to streaming input. e.g. fs.createReadStream(file) */,
vaultName: /**a string value*/,
accountId: /**a string value*/,
body: /**a blob value*/
/**You can supply readable stream to streaming input. e.g. fs.createReadStream(file) */,
};
const uploadArchiveCommand = new UploadArchiveCommand(params);
glacier.send(uploadArchiveCommand).then(data => {
Expand Down
4 changes: 2 additions & 2 deletions packages/client-kinesis-browser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ To send a request, you:
const kinesis = new KinesisClient({region: 'region'});
//clients can be shared by different commands
const params = {
StreamName: /**a string value*/,
Tags: { /**a map with key of string and value of string*/ },
StreamName: /**a string value*/,
Tags: { /**a map with key of string and value of string*/ },
};
const addTagsToStreamCommand = new AddTagsToStreamCommand(params);
kinesis.send(addTagsToStreamCommand).then(data => {
Expand Down
88 changes: 44 additions & 44 deletions packages/client-kinesis-browser/karma.conf
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
// Karma configuration
process.env.CHROME_BIN = require('puppeteer').executablePath();
process.env.CHROME_BIN = require("puppeteer").executablePath();

module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine', 'karma-typescript'],
files: [
'test/smoke/*.spec.ts',
'commands/*.ts',
'model/*.ts',
'types/*.ts',
'*.ts'
],
preprocessors: {
'test/smoke/index.spec.ts': 'credentials',
'**/*.ts': 'karma-typescript'
},
plugins: [
'@aws-sdk/karma-credential-loader',
'karma-chrome-launcher',
'karma-coverage',
'karma-jasmine',
'karma-typescript'
],
reporters: ['progress', 'karma-typescript'],
karmaTypescriptConfig: {
tsconfig: './tsconfig.json',
bundlerOptions: {
addNodeGlobals: false
}
},
port: 9876,
colors: false,
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: ['ChromeHeadlessDisableCors'],
customLaunchers: {
ChromeHeadlessDisableCors: {
base: 'ChromeHeadless',
flags: ['--disable-web-security']
}
},
singleRun: true,
concurrency: Infinity,
exclude: ['**/*.d.ts']
});
config.set({
basePath: "",
frameworks: ["jasmine", "karma-typescript"],
files: [
"test/smoke/*.spec.ts",
"commands/*.ts",
"model/*.ts",
"types/*.ts",
"*.ts"
],
preprocessors: {
"test/smoke/index.spec.ts": "credentials",
"**/*.ts": "karma-typescript"
},
plugins: [
"@aws-sdk/karma-credential-loader",
"karma-chrome-launcher",
"karma-coverage",
"karma-jasmine",
"karma-typescript"
],
reporters: ["progress", "karma-typescript"],
karmaTypescriptConfig: {
tsconfig: "./tsconfig.json",
bundlerOptions: {
addNodeGlobals: false
}
},
port: 9876,
colors: false,
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: ["ChromeHeadlessDisableCors"],
customLaunchers: {
ChromeHeadlessDisableCors: {
base: "ChromeHeadless",
flags: ["--disable-web-security"]
}
},
singleRun: true,
concurrency: Infinity,
exclude: ["**/*.d.ts"]
});
};
2 changes: 1 addition & 1 deletion packages/client-kms-browser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ To send a request, you:
const kMS = new KMSClient({region: 'region'});
//clients can be shared by different commands
const params = {
KeyId: /**a string value*/,
KeyId: /**a string value*/,
};
const cancelKeyDeletionCommand = new CancelKeyDeletionCommand(params);
kMS.send(cancelKeyDeletionCommand).then(data => {
Expand Down
88 changes: 44 additions & 44 deletions packages/client-kms-browser/karma.conf
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
// Karma configuration
process.env.CHROME_BIN = require('puppeteer').executablePath();
process.env.CHROME_BIN = require("puppeteer").executablePath();

module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine', 'karma-typescript'],
files: [
'test/smoke/*.spec.ts',
'commands/*.ts',
'model/*.ts',
'types/*.ts',
'*.ts'
],
preprocessors: {
'test/smoke/index.spec.ts': 'credentials',
'**/*.ts': 'karma-typescript'
},
plugins: [
'@aws-sdk/karma-credential-loader',
'karma-chrome-launcher',
'karma-coverage',
'karma-jasmine',
'karma-typescript'
],
reporters: ['progress', 'karma-typescript'],
karmaTypescriptConfig: {
tsconfig: './tsconfig.json',
bundlerOptions: {
addNodeGlobals: false
}
},
port: 9876,
colors: false,
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: ['ChromeHeadlessDisableCors'],
customLaunchers: {
ChromeHeadlessDisableCors: {
base: 'ChromeHeadless',
flags: ['--disable-web-security']
}
},
singleRun: true,
concurrency: Infinity,
exclude: ['**/*.d.ts']
});
config.set({
basePath: "",
frameworks: ["jasmine", "karma-typescript"],
files: [
"test/smoke/*.spec.ts",
"commands/*.ts",
"model/*.ts",
"types/*.ts",
"*.ts"
],
preprocessors: {
"test/smoke/index.spec.ts": "credentials",
"**/*.ts": "karma-typescript"
},
plugins: [
"@aws-sdk/karma-credential-loader",
"karma-chrome-launcher",
"karma-coverage",
"karma-jasmine",
"karma-typescript"
],
reporters: ["progress", "karma-typescript"],
karmaTypescriptConfig: {
tsconfig: "./tsconfig.json",
bundlerOptions: {
addNodeGlobals: false
}
},
port: 9876,
colors: false,
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: ["ChromeHeadlessDisableCors"],
customLaunchers: {
ChromeHeadlessDisableCors: {
base: "ChromeHeadless",
flags: ["--disable-web-security"]
}
},
singleRun: true,
concurrency: Infinity,
exclude: ["**/*.d.ts"]
});
};
2 changes: 1 addition & 1 deletion packages/client-kms-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ To send a request, you:
const kMS = new KMSClient({region: 'region'});
//clients can be shared by different commands
const params = {
KeyId: /**a string value*/,
KeyId: /**a string value*/,
};
const cancelKeyDeletionCommand = new CancelKeyDeletionCommand(params);
kMS.send(cancelKeyDeletionCommand).then(data => {
Expand Down
6 changes: 3 additions & 3 deletions packages/client-lambda-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ To send a request, you:
const lambda = new LambdaClient({region: 'region'});
//clients can be shared by different commands
const params = {
FunctionName: /**a string value*/,
InvokeArgs: /**a blob value*/
/**You can supply readable stream to streaming input. e.g. fs.createReadStream(file) */,
FunctionName: /**a string value*/,
InvokeArgs: /**a blob value*/
/**You can supply readable stream to streaming input. e.g. fs.createReadStream(file) */,
};
const invokeAsyncCommand = new InvokeAsyncCommand(params);
lambda.send(invokeAsyncCommand).then(data => {
Expand Down
Loading

0 comments on commit 548e4b6

Please sign in to comment.