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

@ -15,7 +15,7 @@ import {HttpClient} from '../src/client';
import {HttpErrorResponse, HttpEventType, HttpResponse} from '../src/response';
import {HttpClientTestingBackend} from '../testing/src/backend';
export function main() {
{
describe('HttpClient', () => {
let client: HttpClient = null !;
let backend: HttpClientTestingBackend = null !;

View File

@ -8,7 +8,7 @@
import {HttpHeaders} from '../src/headers';
export function main() {
{
describe('HttpHeaders', () => {
describe('initialization', () => {

View File

@ -24,7 +24,7 @@ function runOnlyCallback(home: any, data: Object) {
const SAMPLE_REQ = new HttpRequest<never>('JSONP', '/test');
export function main() {
{
describe('JsonpClientBackend', () => {
let home = {};
let document: MockDocument;

View File

@ -47,7 +47,7 @@ class InterceptorB extends TestInterceptor {
constructor() { super('B'); }
}
export function main() {
{
describe('HttpClientModule', () => {
let injector: Injector;
beforeEach(() => {

View File

@ -8,7 +8,7 @@
import {HttpParams} from '../src/params';
export function main() {
{
describe('HttpUrlEncodedParams', () => {
describe('initialization', () => {
it('should be empty at construction', () => {

View File

@ -15,7 +15,7 @@ import {HttpRequest} from '../src/request';
const TEST_URL = 'http://angular.io';
const TEST_STRING = `I'm a body!`;
export function main() {
{
describe('HttpRequest', () => {
describe('constructor', () => {
it('initializes url', () => {

View File

@ -11,7 +11,7 @@ import {ddescribe, describe, it} from '@angular/core/testing/src/testing_interna
import {HttpHeaders} from '../src/headers';
import {HttpResponse} from '../src/response';
export function main() {
{
describe('HttpResponse', () => {
describe('constructor()', () => {
it('fully constructs responses', () => {

View File

@ -27,7 +27,7 @@ const TEST_POST = new HttpRequest('POST', '/test', 'some body', {
const XSSI_PREFIX = ')]}\'\n';
export function main() {
{
describe('XhrBackend', () => {
let factory: MockXhrFactory = null !;
let backend: HttpXhrBackend = null !;

View File

@ -19,7 +19,7 @@ class SampleTokenExtractor {
getToken(): string|null { return this.token; }
}
export function main() {
{
describe('HttpXsrfInterceptor', () => {
let backend: HttpClientTestingBackend;
const interceptor = new HttpXsrfInterceptor(new SampleTokenExtractor('test'), 'X-XSRF-TOKEN');