Skip to content

Instantly share code, notes, and snippets.

@Njuelle
Created July 8, 2018 12:02
Show Gist options
  • Select an option

  • Save Njuelle/4e088d7373b81da2716db128bab20da1 to your computer and use it in GitHub Desktop.

Select an option

Save Njuelle/4e088d7373b81da2716db128bab20da1 to your computer and use it in GitHub Desktop.
Tester abstract class
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