refactor(docs-infra): fix docs examples for tslint rule prefer-const
(#38143)
This commit updates the docs examples to be compatible with the `prefer-const` tslint rule. 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:

committed by
Michael Prentice

parent
a3fe2de883
commit
97ae2d3b9b
@ -1,8 +1,8 @@
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
describe('Displaying Data Tests', () => {
|
||||
let title = 'Tour of Heroes';
|
||||
let defaultHero = 'Windstorm';
|
||||
const title = 'Tour of Heroes';
|
||||
const defaultHero = 'Windstorm';
|
||||
|
||||
beforeAll(() => {
|
||||
browser.get('');
|
||||
@ -17,7 +17,7 @@ describe('Displaying Data Tests', () => {
|
||||
});
|
||||
|
||||
it('should have heroes', () => {
|
||||
let heroEls = element.all(by.css('li'));
|
||||
const heroEls = element.all(by.css('li'));
|
||||
expect(heroEls.count()).not.toBe(0, 'should have heroes');
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user