build: remove main() from specs (#21053)

PR Close #21053
This commit is contained in:
Misko Hevery
2017-12-16 14:42:55 -08:00
committed by Igor Minar
parent 47bcb5bc35
commit 47e251a80a
191 changed files with 424 additions and 424 deletions

View File

@ -8,7 +8,7 @@
import {PropertyBinding} from '@angular/upgrade/src/common/component_info';
export function main() {
{
describe('PropertyBinding', () => {
it('should process a simple binding', () => {
const binding = new PropertyBinding('someBinding', 'someBinding');

View File

@ -12,7 +12,7 @@ import {DowngradeComponentAdapter, groupNodesBySelector} from '@angular/upgrade/
import {nodes} from './test_helpers';
export function main() {
{
describe('DowngradeComponentAdapter', () => {
describe('groupNodesBySelector', () => {
it('should return an array of node collections for each selector', () => {

View File

@ -9,7 +9,7 @@
import {INJECTOR_KEY} from '@angular/upgrade/src/common/constants';
import {downgradeInjectable} from '@angular/upgrade/src/common/downgrade_injectable';
export function main() {
{
describe('downgradeInjectable', () => {
it('should return an AngularJS annotated factory for the token', () => {
const factory = downgradeInjectable('someToken');

View File

@ -14,7 +14,7 @@ import * as angular from '@angular/upgrade/src/common/angular1';
import {UpgradeAdapter, UpgradeAdapterRef} from '@angular/upgrade/src/dynamic/upgrade_adapter';
import {$digest, html, multiTrim} from './test_helpers';
export function main() {
{
describe('adapter: ng1 to ng2', () => {
beforeEach(() => destroyPlatform());
afterEach(() => destroyPlatform());

View File

@ -9,7 +9,7 @@
import {Ng1Token} from '@angular/upgrade/src/common/angular1';
import {compileFactory, injectorFactory, parseFactory, rootScopeFactory, setTempInjectorRef} from '@angular/upgrade/src/static/angular1_providers';
export function main() {
{
describe('upgrade angular1_providers', () => {
describe('compileFactory', () => {
it('should retrieve and return `$compile`', () => {

View File

@ -15,7 +15,7 @@ import {UpgradeComponent, UpgradeModule, downgradeComponent} from '@angular/upgr
import {bootstrap, html} from '../test_helpers';
export function main() {
{
describe('scope/component change-detection', () => {
beforeEach(() => destroyPlatform());
afterEach(() => destroyPlatform());

View File

@ -15,7 +15,7 @@ import {UpgradeComponent, UpgradeModule, downgradeComponent} from '@angular/upgr
import {bootstrap, html, multiTrim} from '../test_helpers';
export function main() {
{
describe('content projection', () => {
beforeEach(() => destroyPlatform());

View File

@ -15,7 +15,7 @@ import {UpgradeModule, downgradeComponent} from '@angular/upgrade/static';
import {$apply, bootstrap, html, multiTrim} from '../test_helpers';
export function main() {
{
describe('downgrade ng2 component', () => {
beforeEach(() => destroyPlatform());

View File

@ -19,7 +19,7 @@ import {downgradeComponent, downgradeModule} from '@angular/upgrade/static';
import {html, multiTrim} from '../test_helpers';
export function main() {
{
[true, false].forEach(propagateDigest => {
describe(`lazy-load ng2 module (propagateDigest: ${propagateDigest})`, () => {

View File

@ -15,7 +15,7 @@ import {UpgradeComponent, UpgradeModule, downgradeComponent} from '@angular/upgr
import {bootstrap, html, multiTrim} from '../test_helpers';
export function main() {
{
describe('examples', () => {
beforeEach(() => destroyPlatform());

View File

@ -16,7 +16,7 @@ import {UpgradeModule, downgradeInjectable, getAngularJSGlobal, setAngularJSGlob
import {bootstrap, html} from '../test_helpers';
export function main() {
{
describe('injection', () => {
beforeEach(() => destroyPlatform());

View File

@ -16,7 +16,7 @@ import {UpgradeModule} from '@angular/upgrade/static';
import {bootstrap, html} from '../test_helpers';
export function main() {
{
describe('testability', () => {
beforeEach(() => destroyPlatform());

View File

@ -16,7 +16,7 @@ import {UpgradeComponent, UpgradeModule, downgradeComponent} from '@angular/upgr
import {$digest, bootstrap, html, multiTrim} from '../test_helpers';
export function main() {
{
describe('upgrade ng1 component', () => {
beforeEach(() => destroyPlatform());