Created
July 8, 2018 12:02
-
-
Save Njuelle/4e088d7373b81da2716db128bab20da1 to your computer and use it in GitHub Desktop.
Tester abstract class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Tester { | |
| constructor () { | |
| if (new.target === Tester) { | |
| throw new TypeError("Cannot construct Tester instances directly"); | |
| } | |
| } | |
| execLintCommand () { | |
| //return a promise will executing | |
| // this.lintCommand added in childrens class | |
| } | |
| execRunCommand () { | |
| //return a promise will executing | |
| // this.runCommand added in childrens class | |
| } | |
| [...] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment