build: reformat repo to new clang@1.4.0 (#36628)

PR Close #36628
This commit is contained in:
Joey Perrott
2020-04-13 17:43:52 -07:00
committed by atscott
parent 4b3f9ac739
commit 26f49151e7
1163 changed files with 31727 additions and 24036 deletions

View File

@ -40,8 +40,9 @@ import {isTextNode} from '@angular/platform-browser/testing/src/browser_util';
describe('getBaseHref', () => {
beforeEach(() => getDOM().resetBaseElement());
it('should return null if base element is absent',
() => { expect(getDOM().getBaseHref(defaultDoc)).toBeNull(); });
it('should return null if base element is absent', () => {
expect(getDOM().getBaseHref(defaultDoc)).toBeNull();
});
it('should return the value of the base element', () => {
const baseEl = getDOM().createElement('base');
@ -62,7 +63,7 @@ import {isTextNode} from '@angular/platform-browser/testing/src/browser_util';
const headEl = defaultDoc.head;
headEl.appendChild(baseEl);
const baseHref = getDOM().getBaseHref(defaultDoc) !;
const baseHref = getDOM().getBaseHref(defaultDoc)!;
headEl.removeChild(baseEl);
getDOM().resetBaseElement();
@ -70,7 +71,5 @@ import {isTextNode} from '@angular/platform-browser/testing/src/browser_util';
});
});
}
});
}

View File

@ -10,7 +10,6 @@ import {describe, expect, it} from '@angular/core/testing/src/testing_internal';
{
describe('Shim', () => {
it('should provide correct function.name ', () => {
const functionWithoutName = identity(() => function(_: any /** TODO #9100 */) {});
function foo(_: any /** TODO #9100 */) {}
@ -18,7 +17,6 @@ import {describe, expect, it} from '@angular/core/testing/src/testing_internal';
expect((<any>functionWithoutName).name).toBeFalsy();
expect((<any>foo).name).toEqual('foo');
});
});
}