Skip to content

Commit 5d9b20b

Browse files
alan-agius4vikerman
authored andcommitted
refactor(@schematics/angular): remove redundant quotes from protractor options
1 parent a1cf5f5 commit 5d9b20b

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

packages/schematics/angular/e2e/files/protractor.conf.js.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ exports.config = {
1313
'./src/**/*.e2e-spec.ts'
1414
],
1515
capabilities: {
16-
'browserName': 'chrome'
16+
browserName: 'chrome'
1717
},
1818
directConnect: true,
1919
baseUrl: 'http://localhost:4200/',

tests/angular_devkit/build_angular/hello-world-app-ve/protractor.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ exports.config = {
1717
'./e2e/**/*.e2e-spec.ts'
1818
],
1919
capabilities: {
20-
'browserName': 'chrome',
20+
browserName: 'chrome',
2121
chromeOptions: {
2222
args: ['--headless', '--disable-gpu', '--window-size=800,600'],
2323
binary: require('puppeteer').executablePath()

tests/legacy-cli/e2e/assets/1.0-project/protractor.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ exports.config = {
1010
'./e2e/**/*.e2e-spec.ts'
1111
],
1212
capabilities: {
13-
'browserName': 'chrome'
13+
browserName: 'chrome'
1414
},
1515
directConnect: true,
1616
baseUrl: 'http://localhost:4200/',

tests/legacy-cli/e2e/assets/1.7-project/protractor.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ exports.config = {
1010
'./e2e/**/*.e2e-spec.ts'
1111
],
1212
capabilities: {
13-
'browserName': 'chrome'
13+
browserName: 'chrome'
1414
},
1515
directConnect: true,
1616
baseUrl: 'http://localhost:4200/',

tests/legacy-cli/e2e/assets/7.0-project/e2e/protractor.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ exports.config = {
99
'./src/**/*.e2e-spec.ts'
1010
],
1111
capabilities: {
12-
'browserName': 'chrome'
12+
browserName: 'chrome'
1313
},
1414
directConnect: true,
1515
baseUrl: 'http://localhost:4200/',

tests/legacy-cli/e2e/utils/project.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ export function useCIChrome(projectDir: string) {
258258
.then(() => {
259259
if (fs.existsSync(protractorConf)) {
260260
return replaceInFile(protractorConf,
261-
`'browserName': 'chrome'`,
262-
`'browserName': 'chrome',
261+
`browserName: 'chrome'`,
262+
`browserName: 'chrome',
263263
chromeOptions: {
264264
args: ['--headless'],
265265
binary: require('puppeteer').executablePath()
@@ -275,11 +275,11 @@ export function useCIChrome(projectDir: string) {
275275
.then(() => replaceInFile(karmaConf,
276276
`browsers: ['Chrome']`,
277277
`browsers: ['Chrome'],
278-
customLaunchers: {
279-
ChromeHeadlessCI: {
280-
base: 'ChromeHeadless',
278+
customLaunchers: {
279+
ChromeHeadlessCI: {
280+
base: 'ChromeHeadless',
281+
}
281282
}
282-
}
283283
`));
284284
}
285285
});

0 commit comments

Comments
 (0)