提交 3ff6c07b 编写于 作者: F fxy060608

调整静态属性内类继承测试例

上级 36391d00
import { describe, test, expect, Result } from './tests.uts'
class TestClass {
static test() : boolean {
class TestStaticMethodClass {
static setup = () : boolean => {
// 测试静态方法内的class继承
class A { }
class B extends A {
......@@ -17,7 +17,7 @@ class TestClass {
export function testClass() : Result {
return describe("Class", () => {
test('Class static method', () => {
expect(TestClass.test()).toEqual(true)
expect(TestStaticMethodClass.setup()).toEqual(true)
})
})
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册