refactor(docs-infra): remove unnecessary `use strict` from docs examples TS files (#38143)
By default, TypeScript will emit `"use strict"` directives, so it is not necessary to include `'use strict'` in `.ts` files: https://www.typescriptlang.org/docs/handbook/compiler-options.html#:~:text=--noImplicitUseStrict PR Close #38143
This commit is contained in:
parent
00b7186cb2
commit
d89200ad24
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
describe('Accessibility example e2e tests', () => {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
describe('AngularJS to Angular Quick Reference Tests', function () {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, ExpectedConditions as EC } from 'protractor';
|
||||
import { logging } from 'selenium-webdriver';
|
||||
import * as openClose from './open-close.po';
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { protractor, browser, element, by, ElementFinder } from 'protractor';
|
||||
|
||||
const nameSuffix = 'X';
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
describe('Attribute binding example', function () {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
describe('Attribute directives', () => {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict';
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
describe('Built-in Directives', function () {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
describe('Built Template Functions Example', function () {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
describe('Component Communication Cookbook Tests', function () {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
describe('Component Style Tests', function () {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
describe('Dependency Injection Cookbook', function () {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by, ElementFinder } from 'protractor';
|
||||
|
||||
describe('Dependency Injection Tests', function () {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
describe('Displaying Data Tests', function () {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
describe('Docs Style Guide', function () {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
/* tslint:disable:quotemark */
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
/* tslint:disable:quotemark */
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, by, element, ElementFinder, ExpectedConditions as EC } from 'protractor';
|
||||
|
||||
/* tslint:disable:quotemark */
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by, protractor } from 'protractor';
|
||||
|
||||
describe('Event binding example', function () {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for node!
|
||||
|
||||
import { browser, element, by, protractor, ElementFinder, ElementArrayFinder } from 'protractor';
|
||||
|
||||
// THESE TESTS ARE INCOMPLETE
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
describe('Getting Started V0', () => {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by, ExpectedConditions as EC, logging, ElementFinder, ElementArrayFinder } from 'protractor';
|
||||
|
||||
describe('Getting Started', () => {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, by, element } from 'protractor';
|
||||
|
||||
describe('Hierarchical dependency injection', () => {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict';
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
import { logging } from 'selenium-webdriver';
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, ElementFinder, by } from 'protractor';
|
||||
|
||||
describe('Lifecycle hooks', () => {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
describe('NgModule-example', function () {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
const { version: angularVersion } = require('@angular/core/package.json');
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
describe('Reactive forms', function () {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
;
|
||||
import { OptionalComponent } from './optional/optional.component';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by, ExpectedConditions } from 'protractor';
|
||||
|
||||
const numDashboardTabs = 5;
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, By } from 'protractor';
|
||||
|
||||
describe('Security E2E Tests', () => {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by, ElementFinder } from 'protractor';
|
||||
|
||||
describe('Set Document Title', function () {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
describe('QuickStart E2E Tests', function () {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
describe('Structural Directives', function () {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
describe('Style Guide', function () {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
import { logging } from 'selenium-webdriver';
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
// TODO Not yet complete
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by, ElementFinder } from 'protractor';
|
||||
|
||||
describe('Testing Example', () => {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
describe('Tour of Heroes', () => {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by, ElementFinder } from 'protractor';
|
||||
import { promise } from 'selenium-webdriver';
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by, ElementFinder } from 'protractor';
|
||||
import { promise } from 'selenium-webdriver';
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by, ElementFinder } from 'protractor';
|
||||
import { promise } from 'selenium-webdriver';
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by, ElementFinder } from 'protractor';
|
||||
import { promise } from 'selenium-webdriver';
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by, ElementFinder } from 'protractor';
|
||||
import { promise } from 'selenium-webdriver';
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by, ElementFinder, ElementArrayFinder } from 'protractor';
|
||||
import { promise } from 'selenium-webdriver';
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
describe('Upgrade Tests', function () {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict';
|
||||
|
||||
angular.
|
||||
module('phonecatApp').
|
||||
animation('.phone', function phoneAnimationFactory() {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict';
|
||||
|
||||
// Define the `phonecatApp` module
|
||||
angular.module('phonecatApp', [
|
||||
'ngAnimate',
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict';
|
||||
|
||||
describe('checkmark', () => {
|
||||
|
||||
beforeEach(angular.mock.module('core'));
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
'use strict';
|
||||
|
||||
// Define the `core` module
|
||||
angular.module('core', ['core.phone']);
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
'use strict';
|
||||
|
||||
// Define the `core.phone` module
|
||||
angular.module('core.phone', ['ngResource']);
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict';
|
||||
|
||||
describe('Phone', () => {
|
||||
let $httpBackend: angular.IHttpBackendService;
|
||||
let Phone: any;
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict';
|
||||
|
||||
// Define the `phoneDetail` module
|
||||
angular.module('phoneDetail', [
|
||||
'ngRoute',
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict';
|
||||
|
||||
describe('phoneList', () => {
|
||||
|
||||
// Load the module that contains the `phoneList` component before each test
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
'use strict';
|
||||
|
||||
// Define the `phoneList` module
|
||||
angular.module('phoneList', ['core.phone']);
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by, ElementArrayFinder, ElementFinder } from 'protractor';
|
||||
|
||||
// Angular E2E Testing Guide:
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict';
|
||||
|
||||
angular.
|
||||
module('phonecatApp').
|
||||
animation('.phone', function phoneAnimationFactory() {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict';
|
||||
|
||||
angular.
|
||||
module('phonecatApp').
|
||||
config(['$locationProvider', '$routeProvider',
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
// #docregion
|
||||
'use strict';
|
||||
|
||||
// Define the `phonecatApp` AngularJS module
|
||||
angular.module('phonecatApp', [
|
||||
'ngAnimate',
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
'use strict';
|
||||
|
||||
// Define the `core` module
|
||||
angular.module('core', ['core.phone']);
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
'use strict';
|
||||
|
||||
// Define the `core.phone` module
|
||||
angular.module('core.phone', ['ngResource']);
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict';
|
||||
|
||||
// Define the `phoneDetail` module
|
||||
angular.module('phoneDetail', [
|
||||
'ngRoute',
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
'use strict';
|
||||
|
||||
// Define the `phoneList` module
|
||||
angular.module('phoneList', ['core.phone']);
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
// Angular E2E Testing Guide:
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
// Angular E2E Testing Guide:
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use strict'; // necessary for es6 output in node
|
||||
|
||||
import { browser, element, by, protractor } from 'protractor';
|
||||
|
||||
describe('User Input Tests', function () {
|
||||
|
|
Loading…
Reference in New Issue