fix(build): add missing return types now enforced by linter
This commit is contained in:
@@ -58,8 +58,9 @@ export function main() {
|
||||
rootProtoView = createRootProtoView(directiveResolver, MainComponent);
|
||||
});
|
||||
|
||||
function createCompiler(renderCompileResults: List<renderApi.ProtoViewDto>,
|
||||
protoViewFactoryResults: List<List<AppProtoView>>) {
|
||||
function createCompiler(
|
||||
renderCompileResults: List<renderApi.ProtoViewDto | Promise<renderApi.ProtoViewDto>>,
|
||||
protoViewFactoryResults: List<List<AppProtoView>>) {
|
||||
var urlResolver = new UrlResolver();
|
||||
renderCompileRequests = [];
|
||||
renderCompiler.spy('compile').andCallFake((view) => {
|
||||
|
||||
@@ -115,10 +115,9 @@ export function main() {
|
||||
tc.detectChanges();
|
||||
|
||||
var newlyInsertedElement = DOM.childNodes(tc.nativeElement)[1];
|
||||
expect(newlyInsertedElement.id)
|
||||
.toEqual("new value")
|
||||
|
||||
async.done();
|
||||
expect((</*(#2770) HTMLElement*/ any>newlyInsertedElement).id)
|
||||
.toEqual("new value");
|
||||
async.done();
|
||||
});
|
||||
});
|
||||
}));
|
||||
@@ -211,10 +210,10 @@ export function main() {
|
||||
tc.detectChanges();
|
||||
|
||||
var newlyInsertedElement = DOM.nextSibling(tc.nativeElement);
|
||||
expect(newlyInsertedElement.id)
|
||||
.toEqual("new value")
|
||||
expect((</*(#2770) HTMLElement*/ any>newlyInsertedElement).id)
|
||||
.toEqual("new value");
|
||||
|
||||
async.done();
|
||||
async.done();
|
||||
});
|
||||
});
|
||||
}));
|
||||
|
||||
@@ -107,10 +107,11 @@ export function main() {
|
||||
|
||||
var el = DOM.childNodes(tb.rootEl)[0];
|
||||
tb.renderer.setElementProperty(elRef(cmpView.viewRef, 0), 'value', 'hello');
|
||||
expect(el.value).toEqual('hello');
|
||||
expect((</*(#2770) HTMLInputElement*/ any>el).value).toEqual('hello');
|
||||
|
||||
tb.renderer.setElementClass(elRef(cmpView.viewRef, 0), 'a', true);
|
||||
expect(DOM.childNodes(tb.rootEl)[0].value).toEqual('hello');
|
||||
expect((</*(#2770) HTMLInputElement*/ any>DOM.childNodes(tb.rootEl)[0]).value)
|
||||
.toEqual('hello');
|
||||
tb.renderer.setElementClass(elRef(cmpView.viewRef, 0), 'a', false);
|
||||
expect(DOM.hasClass(el, 'a')).toBe(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user