mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
edit decorator
This commit is contained in:
+2
-2
@@ -42,10 +42,10 @@ function testable(isTestable) {
|
||||
}
|
||||
}
|
||||
|
||||
@testable(true) class MyTestableClass () {}
|
||||
@testable(true) class MyTestableClass {}
|
||||
console.log(MyTestableClass.isTestable) // true
|
||||
|
||||
@testable(false) class MyClass () {}
|
||||
@testable(false) class MyClass {}
|
||||
console.log(MyClass.isTestable) // false
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user