fix(typings): repair broken typechecks

We had the typechecker disabled by accident, and many problems snuck in

Fixes #4507

Closes #4508
This commit is contained in:
Alex Eagle
2015-10-05 16:02:21 -07:00
committed by Alex Eagle
parent ae6f549f10
commit 6093e28b61
19 changed files with 99 additions and 76 deletions
@@ -93,7 +93,7 @@ export function main() {
});
it("should throw when more than one custom accessor is provided", () => {
var customAccessor = new SpyValueAccessor();
var customAccessor: ControlValueAccessor = <any>new SpyValueAccessor();
expect(() => selectValueAccessor(dir, [customAccessor, customAccessor])).toThrowError();
});
});
@@ -156,7 +156,7 @@ export function main() {
{"one": new Control("111"), "nested": new ControlGroup({"two": new Control("222")})});
expect(g.value).toEqual({"one": "111", "nested": {"two": "222"}});
g.controls["nested"].controls["two"].updateValue("333");
(<Control>(g.controls["nested"].find("two"))).updateValue("333");
expect(g.value).toEqual({"one": "111", "nested": {"two": "333"}});
});