Skip to content

Commit 155a64e

Browse files
trivikrAllanZhengYP
authored andcommitted
chore: Replace single-quote with double-quote
1 parent 1b3346f commit 155a64e

File tree

2 files changed

+60
-60
lines changed

2 files changed

+60
-60
lines changed

packages/package-generator/src/ClientModuleGenerator.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,20 +94,20 @@ export class ClientModuleGenerator extends ModuleGenerator {
9494

9595
const packageIndexLines = [];
9696
for (const [name, contents] of new TypeGenerator(this.model, this.target)) {
97-
packageIndexLines.push(`export * from './types/${name}';`);
97+
packageIndexLines.push(`export * from "./types/${name}";`);
9898
yield [
9999
join("types", `${name}.ts`),
100100
prettier.format(contents, { parser: "typescript" })
101101
];
102102
}
103103

104104
for (const [name, contents] of this.clientGenerator) {
105-
packageIndexLines.push(`export * from './${name}';`);
105+
packageIndexLines.push(`export * from "./${name}";`);
106106
yield [`${name}.ts`, prettier.format(contents, { parser: "typescript" })];
107107
}
108108

109109
for (const [name, command] of this.commandGenerator) {
110-
packageIndexLines.push(`export * from './commands/${name}';`);
110+
packageIndexLines.push(`export * from "./commands/${name}";`);
111111
yield [
112112
join("commands", `${name}.ts`),
113113
prettier.format(command, { parser: "typescript" })
@@ -318,9 +318,9 @@ tsconfig.test.json
318318
this.circularDependencies
319319
)) {
320320
if (file === "ServiceMetadata") {
321-
generated += `\nexport const clientVersion: string = '${
321+
generated += `\nexport const clientVersion: string = "${
322322
this.version
323-
}';`;
323+
}";`;
324324
}
325325
yield [file, generated];
326326
}

packages/service-types-generator/src/SmokeTestGenerator.ts

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -112,53 +112,53 @@ export class SmokeTestGenerator {
112112
private generateKarmaConfiguration() {
113113
return `
114114
// Karma configuration
115-
process.env.CHROME_BIN = require('puppeteer').executablePath();
115+
process.env.CHROME_BIN = require("puppeteer").executablePath();
116116
117117
module.exports = function(config) {
118-
config.set({
119-
basePath: '',
120-
frameworks: ['jasmine', 'karma-typescript'],
121-
files: [
122-
'test/smoke/*.spec.ts',
123-
'commands/*.ts',
124-
'model/*.ts',
125-
'types/*.ts',
126-
'*.ts'
127-
],
128-
preprocessors: {
129-
'test/smoke/index.spec.ts': 'credentials',
130-
'**/*.ts': 'karma-typescript'
131-
},
132-
plugins: [
133-
'@aws-sdk/karma-credential-loader',
134-
'karma-chrome-launcher',
135-
'karma-coverage',
136-
'karma-jasmine',
137-
'karma-typescript'
138-
],
139-
reporters: ['progress', 'karma-typescript'],
140-
karmaTypescriptConfig: {
141-
tsconfig: './tsconfig.json',
142-
bundlerOptions: {
143-
addNodeGlobals: false
144-
}
145-
},
146-
port: 9876,
147-
colors: false,
148-
logLevel: config.LOG_INFO,
149-
autoWatch: false,
150-
browsers: ['ChromeHeadlessDisableCors'],
151-
customLaunchers: {
152-
ChromeHeadlessDisableCors: {
153-
base: 'ChromeHeadless',
154-
flags: ['--disable-web-security']
155-
}
156-
},
157-
singleRun: true,
158-
concurrency: Infinity,
159-
exclude: ['**/*.d.ts']
160-
});
161-
};
118+
config.set({
119+
basePath: "",
120+
frameworks: ["jasmine", "karma-typescript"],
121+
files: [
122+
"test/smoke/*.spec.ts",
123+
"commands/*.ts",
124+
"model/*.ts",
125+
"types/*.ts",
126+
"*.ts"
127+
],
128+
preprocessors: {
129+
"test/smoke/index.spec.ts": "credentials",
130+
"**/*.ts": "karma-typescript"
131+
},
132+
plugins: [
133+
"@aws-sdk/karma-credential-loader",
134+
"karma-chrome-launcher",
135+
"karma-coverage",
136+
"karma-jasmine",
137+
"karma-typescript"
138+
],
139+
reporters: ["progress", "karma-typescript"],
140+
karmaTypescriptConfig: {
141+
tsconfig: "./tsconfig.json",
142+
bundlerOptions: {
143+
addNodeGlobals: false
144+
}
145+
},
146+
port: 9876,
147+
colors: false,
148+
logLevel: config.LOG_INFO,
149+
autoWatch: false,
150+
browsers: ["ChromeHeadlessDisableCors"],
151+
customLaunchers: {
152+
ChromeHeadlessDisableCors: {
153+
base: "ChromeHeadless",
154+
flags: ["--disable-web-security"]
155+
}
156+
},
157+
singleRun: true,
158+
concurrency: Infinity,
159+
exclude: ["**/*.d.ts"]
160+
});
161+
};
162162
`.trim();
163163
}
164164

@@ -173,21 +173,21 @@ module.exports = function(config) {
173173

174174
for (const commandName of commandNames) {
175175
commandImports.push(
176-
`import {${commandName}} from '../../commands/${commandName}';`
176+
`import {${commandName}} from "../../commands/${commandName}";`
177177
);
178178
}
179179

180180
return `
181-
import {${this.clientName}} from '../../${this.clientName}';
181+
import {${this.clientName}} from "../../${this.clientName}";
182182
${commandImports.join("\n")}
183183
184184
async function smokeTestRunner() {
185-
const defaultRegion = process.env.AWS_SMOKE_TEST_REGION || '${
185+
const defaultRegion = process.env.AWS_SMOKE_TEST_REGION || "${
186186
this.model.defaultRegion
187-
}';
187+
}";
188188
let testFailed = false;
189-
console.log('1..${smokeTests.length}');
190-
console.log('# Running tests for ${this.serviceId}.');
189+
console.log("1..${smokeTests.length}");
190+
console.log("# Running tests for ${this.serviceId}.");
191191
192192
${smokeTests.map(test => new IndentedSection(test, 1)).join("\n")}
193193
@@ -215,7 +215,7 @@ smokeTestRunner();
215215

216216
for (const commandName of commandNames) {
217217
commandImports.push(
218-
`import {${commandName}} from '../../commands/${commandName}';`
218+
`import {${commandName}} from "../../commands/${commandName}";`
219219
);
220220
}
221221

@@ -226,11 +226,11 @@ smokeTestRunner();
226226
];
227227

228228
return `
229-
import {${this.clientName}} from '../../${this.clientName}';
229+
import {${this.clientName}} from "../../${this.clientName}";
230230
${commandImports.join("\n")}
231231
${injectedDeclarations.join("\n")}
232-
describe('${this.packageName} Smoke Tests:', () => {
233-
defaultRegion = defaultRegion || '${defaultRegion}';
232+
describe("${this.packageName} Smoke Tests:", () => {
233+
defaultRegion = defaultRegion || "${defaultRegion}";
234234
${smokeTests.map(test => new IndentedSection(test, 1)).join("\n")}
235235
});
236236
`.trim();

0 commit comments

Comments
 (0)