style(docs-infra): fix docs examples for tslint rules related to whitespace (#38143)

This commit updates the docs examples to be compatible with the `align`,
`space-before-function-paren` and `typedef-whitespace` tslint rules.

This is in preparation of updating the docs examples `tslint.json` to
match the one generated for new Angular CLI apps in a future commit.

PR Close #38143
This commit is contained in:
George Kalpakas
2020-07-30 13:03:10 +03:00
committed by Michael Prentice
parent c980caecac
commit da0129b83e
31 changed files with 147 additions and 142 deletions

View File

@ -13,17 +13,17 @@ describe('Getting Started', () => {
};
describe('General', () => {
beforeAll(async() => {
beforeAll(async () => {
await browser.get('/');
});
it('should display "My Store"', async() => {
it('should display "My Store"', async () => {
const title = await pageElements.topBarHeader.getText();
expect(title).toEqual('My Store');
});
it('should display "Products" on the homepage', async() => {
it('should display "Products" on the homepage', async () => {
const title = await pageElements.productListHeader.getText();
expect(title).toEqual('Products');
@ -31,11 +31,11 @@ describe('Getting Started', () => {
});
describe('Product List', () => {
beforeAll(async() => {
beforeAll(async () => {
await browser.get('/');
});
it('should display 3 items', async() => {
it('should display 3 items', async () => {
const products = await pageElements.productListItems;
expect(products.length).toEqual(3);
@ -43,11 +43,11 @@ describe('Getting Started', () => {
});
describe('Product Details', () => {
beforeEach(async() => {
beforeEach(async () => {
await browser.get('/');
});
it('should display information for a product', async() => {
it('should display information for a product', async () => {
await pageElements.productListLinks.get(0).click();
const product = pageElements.productDetailsPage;
@ -61,7 +61,7 @@ describe('Getting Started', () => {
expect(productDescription).toBe('A large phone with one of the best screens');
});
it('should add the product to the cart', async() => {
it('should add the product to the cart', async () => {
await pageElements.productListLinks.get(0).click();
const product = pageElements.productDetailsPage;
@ -80,11 +80,11 @@ describe('Getting Started', () => {
describe('Cart', () => {
beforeEach(async() => {
beforeEach(async () => {
await browser.get('/');
});
it('should go through the checkout process', async() => {
it('should go through the checkout process', async () => {
await pageElements.productListLinks.get(0).click();
const checkoutLink = pageElements.topBarCheckoutLink;