Skip to content

Commit a92a89b

Browse files
MariosRadisjosephperrott
authored andcommitted
docs: spelling changes in app.e2e-spec and validate-spec files (angular#41326)
PR Close angular#41326
1 parent 0516fbb commit a92a89b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

aio/tests/e2e/src/app.e2e-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ describe('site App', () => {
144144
it('should have contributors listed in each group', async () => {
145145
// WebDriver calls `scrollIntoView()` on the element to bring it into the visible area of the
146146
// browser, before clicking it. By default, this aligns the top of the element to the top of
147-
// the window. As a result, the element may end up behing the fixed top menu, thus being
147+
// the window. As a result, the element may end up behind the fixed top menu, thus being
148148
// unclickable. To avoid this, we click the element directly using JavaScript instead.
149149
const clickButton =
150150
(elementFinder: ElementFinder) => browser.executeScript('arguments[0].click()', elementFinder);

dev-infra/commit-message/validate.spec.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ describe('validate-commit-message.js', () => {
6363
});
6464

6565
it('should skip max length limit for URLs', () => {
66-
const msg = 'fix(compiler): this is just an usual commit message tile\n\n' +
66+
const msg = 'fix(compiler): this is just a usual commit message title\n\n' +
6767
'This is a normal commit message body which does not exceed the max length\n' +
6868
'limit. For more details see the following super long URL:\n\n' +
6969
'https://github.com/angular/components/commit/e2ace018ddfad10608e0e32932c43dcfef4095d7#diff-9879d6db96fd29134fc802214163b95a';
@@ -266,51 +266,51 @@ describe('validate-commit-message.js', () => {
266266

267267
describe('breaking change', () => {
268268
it('should allow valid breaking change commit descriptions', () => {
269-
const msgWithSummary = 'feat(compiler): this is just an usual commit message tile\n\n' +
269+
const msgWithSummary = 'feat(compiler): this is just a usual commit message title\n\n' +
270270
'This is a normal commit message body which does not exceed the max length\n' +
271271
'limit. For more details see the following super long URL:\n\n' +
272272
'BREAKING CHANGE: This is a summary of a breaking change.';
273273
expectValidationResult(validateCommitMessage(msgWithSummary), VALID);
274274

275-
const msgWithDescription = 'feat(compiler): this is just an usual commit message tile\n\n' +
275+
const msgWithDescription = 'feat(compiler): this is just a usual commit message title\n\n' +
276276
'This is a normal commit message body which does not exceed the max length\n' +
277277
'limit. For more details see the following super long URL:\n\n' +
278278
'BREAKING CHANGE:\n\n' +
279279
'This is a full description of the breaking change.';
280280
expectValidationResult(validateCommitMessage(msgWithDescription), VALID);
281281

282282
const msgWithSummaryAndDescription =
283-
'feat(compiler): this is just an usual commit message tile\n\n' +
283+
'feat(compiler): this is just a usual commit message title\n\n' +
284284
'This is a normal commit message body which does not exceed the max length\n' +
285285
'limit. For more details see the following super long URL:\n\n' +
286286
'BREAKING CHANGE: This is a summary of a breaking change.\n\n' +
287287
'This is a full description of the breaking change.';
288288
expectValidationResult(validateCommitMessage(msgWithSummaryAndDescription), VALID);
289289

290-
const msgWithNonBreaking = 'feat(compiler): this is just an usual commit message tile\n\n' +
290+
const msgWithNonBreaking = 'feat(compiler): this is just a usual commit message title\n\n' +
291291
'This is not a\n' +
292292
'breaking change commit.';
293293
expectValidationResult(validateCommitMessage(msgWithNonBreaking), VALID);
294294
});
295295

296296
it('should fail for non-valid breaking change commit descriptions', () => {
297-
const msgWithSummary = 'feat(compiler): this is just an usual commit message tile\n\n' +
297+
const msgWithSummary = 'feat(compiler): this is just a usual commit message title\n\n' +
298298
'This is a normal commit message body which does not exceed the max length\n' +
299299
'limit. For more details see the following super long URL:\n\n' +
300300
'BREAKING CHANGE This is a summary of a breaking change.';
301301
expectValidationResult(
302302
validateCommitMessage(msgWithSummary), INVALID,
303303
[`The commit message body contains an invalid breaking change description.`]);
304304

305-
const msgWithPlural = 'feat(compiler): this is just an usual commit message tile\n\n' +
305+
const msgWithPlural = 'feat(compiler): this is just a usual commit message title\n\n' +
306306
'This is a normal commit message body which does not exceed the max length\n' +
307307
'limit. For more details see the following super long URL:\n\n' +
308308
'BREAKING CHANGES: This is a summary of a breaking change.';
309309
expectValidationResult(
310310
validateCommitMessage(msgWithPlural), INVALID,
311311
[`The commit message body contains an invalid breaking change description.`]);
312312

313-
const msgWithDescription = 'feat(compiler): this is just an usual commit message tile\n\n' +
313+
const msgWithDescription = 'feat(compiler): this is just a usual commit message title\n\n' +
314314
'This is a normal commit message body which does not exceed the max length\n' +
315315
'limit. For more details see the following super long URL:\n\n' +
316316
'BREAKING CHANGE:\n' +
@@ -320,7 +320,7 @@ describe('validate-commit-message.js', () => {
320320
[`The commit message body contains an invalid breaking change description.`]);
321321

322322
const msgWithSummaryAndDescription =
323-
'feat(compiler): this is just an usual commit message tile\n\n' +
323+
'feat(compiler): this is just a usual commit message title\n\n' +
324324
'This is a normal commit message body which does not exceed the max length\n' +
325325
'limit. For more details see the following super long URL:\n\n' +
326326
'BREAKING CHANGE\n\n' +

0 commit comments

Comments
 (0)