提交 f3513a42 编写于 作者: lizhongyi_'s avatar lizhongyi_

调整class 测试用例

上级 2c7f4eb8
......@@ -49,9 +49,9 @@ class Parent {
class ChildrenTest extends Parent {
constructor(weight: number) {
super(weight)
}
// override constructor(weight: number) {
// super(weight)
// }
override eat(): string {
super.eat()
......@@ -128,8 +128,8 @@ export function testKeyWord(): Result {
expect(Parent.age).toEqual(30)
expect(Parent.run()).toEqual("static method")
expect(p.eat()).toEqual("parent instance method")
let c = new ChildrenTest(0)
expect(c.eat()).toEqual("children instance method")
// let c = new ChildrenTest(0)
// expect(c.eat()).toEqual("children instance method")
})
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册