refactor(compiler): add missing test to compare core and compiler metadata (#18739)

PR Close #18739
This commit is contained in:
Tobias Bosch
2017-08-17 09:44:04 -07:00
committed by Miško Hevery
parent ffb1553282
commit 7bfd850493
2 changed files with 197 additions and 1 deletions

View File

@ -15,7 +15,7 @@
export interface Inject { token: any; }
export const createInject = makeMetadataFactory<Inject>('Inject', (token: any) => ({token}));
export const createInjectionToken =
makeMetadataFactory<object>('InjectionToken', (token: any) => token);
makeMetadataFactory<object>('InjectionToken', (desc: string) => ({_desc: desc}));
export interface Attribute { attributeName?: string; }
export const createAttribute =