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

@ -10,7 +10,7 @@ import * as html from '@angular/compiler/src/ml_parser/ast';
import {HtmlParser} from '@angular/compiler/src/ml_parser/html_parser';
import {getHtmlTagDefinition} from '@angular/compiler/src/ml_parser/html_tags';
export function main() {
{
describe('Node serializer', () => {
let parser: HtmlParser;

View File

@ -13,7 +13,7 @@ import {ParseError} from '../../src/parse_util';
import {humanizeDom, humanizeDomSourceSpans, humanizeLineColumn} from './ast_spec_utils';
export function main() {
{
describe('HtmlParser', () => {
let parser: HtmlParser;

View File

@ -12,7 +12,7 @@ import {PRESERVE_WS_ATTR_NAME, removeWhitespaces} from '../../src/ml_parser/html
import {humanizeDom} from './ast_spec_utils';
export function main() {
{
describe('removeWhitespaces', () => {
function parseAndRemoveWS(template: string): any[] {

View File

@ -13,7 +13,7 @@ import {ParseError} from '../../src/parse_util';
import {humanizeNodes} from './ast_spec_utils';
export function main() {
{
describe('Expander', () => {
function expand(template: string): ExpansionResult {
const htmlParser = new HtmlParser();

View File

@ -11,7 +11,7 @@ import {InterpolationConfig} from '../../src/ml_parser/interpolation_config';
import * as lex from '../../src/ml_parser/lexer';
import {ParseLocation, ParseSourceFile, ParseSourceSpan} from '../../src/parse_util';
export function main() {
{
describe('HtmlLexer', () => {
describe('line/column numbers', () => {
it('should work without newlines', () => {