refactor(docs-infra): fix docs examples for tslint rules related to underscores in variable names (#38143)

This commit updates the docs examples to be compatible with the
`variable-name` tslint rule without requiring the
`allow-leading-underscore` and `allow-trailing-underscore` options.

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:17 +03:00
committed by Michael Prentice
parent 7f6c3b3fc1
commit a3fe2de883
22 changed files with 77 additions and 76 deletions

View File

@ -1,19 +1,19 @@
import { browser, element, by } from 'protractor';
describe('Displaying Data Tests', () => {
let _title = 'Tour of Heroes';
let _defaultHero = 'Windstorm';
let title = 'Tour of Heroes';
let defaultHero = 'Windstorm';
beforeAll(() => {
browser.get('');
});
it('should display correct title: ' + _title, () => {
expect(element(by.css('h1')).getText()).toEqual(_title);
it('should display correct title: ' + title, () => {
expect(element(by.css('h1')).getText()).toEqual(title);
});
it('should have correct default hero: ' + _defaultHero, () => {
expect(element(by.css('h2')).getText()).toContain(_defaultHero);
it('should have correct default hero: ' + defaultHero, () => {
expect(element(by.css('h2')).getText()).toContain(defaultHero);
});
it('should have heroes', () => {