docs: spelling errors
This commit is contained in:
parent
1060805a1f
commit
de87c47dd9
|
@ -416,7 +416,7 @@ describe('compiler (bundled Angular)', () => {
|
||||||
})));
|
})));
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Bundled libary', () => {
|
describe('Bundled library', () => {
|
||||||
let host: MockCompilerHost;
|
let host: MockCompilerHost;
|
||||||
let aotHost: MockAotCompilerHost;
|
let aotHost: MockAotCompilerHost;
|
||||||
let libraryFiles: Map<string, string>;
|
let libraryFiles: Map<string, string>;
|
||||||
|
@ -659,4 +659,4 @@ const LIBRARY_USING_APP: MockData = {
|
||||||
function expectPromiseToThrow(p: Promise<any>, msg: RegExp) {
|
function expectPromiseToThrow(p: Promise<any>, msg: RegExp) {
|
||||||
p.then(
|
p.then(
|
||||||
() => { throw new Error('Expected to throw'); }, (e) => { expect(e.message).toMatch(msg); });
|
() => { throw new Error('Expected to throw'); }, (e) => { expect(e.message).toMatch(msg); });
|
||||||
}
|
}
|
||||||
|
|
|
@ -137,7 +137,7 @@ export function main() {
|
||||||
.toBe(symbolCache.get('/tmp/external.d.ts', 'SomeExternalPipe'));
|
.toBe(symbolCache.get('/tmp/external.d.ts', 'SomeExternalPipe'));
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should automatically add the metadata of referenced symbols that are not in the soure files',
|
it('should automatically add the metadata of referenced symbols that are not in the source files',
|
||||||
() => {
|
() => {
|
||||||
init();
|
init();
|
||||||
const externalSerialized = serializeSummaries(
|
const externalSerialized = serializeSummaries(
|
||||||
|
@ -196,7 +196,7 @@ export function main() {
|
||||||
// been serialized as well.
|
// been serialized as well.
|
||||||
expect(summaries[2].symbol).toBe(symbolCache.get('/tmp/non_summary.d.ts', 'external'));
|
expect(summaries[2].symbol).toBe(symbolCache.get('/tmp/non_summary.d.ts', 'external'));
|
||||||
expect(summaries[2].metadata).toEqual('b');
|
expect(summaries[2].metadata).toEqual('b');
|
||||||
// SomService is a transitive dep, but sould have been serialized as well.
|
// SomService is a transitive dep, but should have been serialized as well.
|
||||||
expect(summaries[3].symbol).toBe(symbolCache.get('/tmp/external_svc.d.ts', 'SomeService'));
|
expect(summaries[3].symbol).toBe(symbolCache.get('/tmp/external_svc.d.ts', 'SomeService'));
|
||||||
expect(summaries[3].type.type.reference)
|
expect(summaries[3].type.type.reference)
|
||||||
.toBe(symbolCache.get('/tmp/external_svc.d.ts', 'SomeService'));
|
.toBe(symbolCache.get('/tmp/external_svc.d.ts', 'SomeService'));
|
||||||
|
|
|
@ -305,7 +305,7 @@ export function main() {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('normalizeLoadedTemplate', () => {
|
describe('normalizeLoadedTemplate', () => {
|
||||||
it('should store the viewEncapsulationin the result',
|
it('should store the viewEncapsulation in the result',
|
||||||
inject([DirectiveNormalizer], (normalizer: DirectiveNormalizer) => {
|
inject([DirectiveNormalizer], (normalizer: DirectiveNormalizer) => {
|
||||||
|
|
||||||
const viewEncapsulation = ViewEncapsulation.Native;
|
const viewEncapsulation = ViewEncapsulation.Native;
|
||||||
|
|
Loading…
Reference in New Issue