refactor(docs-infra): fix docs examples for tslint rules related to variable names (#38143)
This commit updates the docs examples to be compatible with the `no-shadowed-variable` and `variable-name` 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:

committed by
Alex Rickabaugh

parent
6334749d2c
commit
1db4f508e6
@ -2,10 +2,7 @@ import { browser, element, by } from 'protractor';
|
||||
import { logging } from 'selenium-webdriver';
|
||||
|
||||
describe('Template-reference-variables-example', () => {
|
||||
beforeEach(() => {
|
||||
browser.get('');
|
||||
|
||||
});
|
||||
beforeEach(() => browser.get(''));
|
||||
|
||||
// helper function used to test what's logged to the console
|
||||
async function logChecker(button, contents) {
|
||||
@ -13,10 +10,8 @@ describe('Template-reference-variables-example', () => {
|
||||
.manage()
|
||||
.logs()
|
||||
.get(logging.Type.BROWSER);
|
||||
const message = logs.filter(({ message }) =>
|
||||
message.indexOf(contents) !== -1 ? true : false
|
||||
);
|
||||
expect(message.length).toBeGreaterThan(0);
|
||||
const messages = logs.filter(({ message }) => message.indexOf(contents) !== -1);
|
||||
expect(messages.length).toBeGreaterThan(0);
|
||||
}
|
||||
|
||||
it('should display Template reference variables', () => {
|
||||
|
Reference in New Issue
Block a user