fix: Better error message in case of unknown property binding

This commit is contained in:
Misko Hevery
2016-07-29 20:16:38 -07:00
parent 73f02c7861
commit a55d796c4b
3 changed files with 17 additions and 5 deletions
@@ -1743,7 +1743,7 @@ function declareTests({useJit}: {useJit: boolean}) {
PromiseWrapper.catchError(tcb.createAsync(MyComp), (e) => {
expect(e.message).toEqual(
`Template parse errors:\nCan't bind to 'unknown' since it isn't a known native property ("<div [ERROR ->]unknown="{{ctxProp}}"></div>"): MyComp@0:5`);
`Template parse errors:\nCan't bind to 'unknown' since it isn't a known property of 'div'. ("<div [ERROR ->]unknown="{{ctxProp}}"></div>"): MyComp@0:5`);
async.done();
return null;
});