1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- "use strict";
- class CheckGroup {
- constructor() {
- this._name = this.setName();
- this._checks = this.setChecks();
- }
-
- setName() {
- throw `Check group has no name.`;
- }
- name() {
- return this._name;
- }
-
- setChecks() {
- throw `Check group has no checks.`;
- }
- checks() {
- return this._checks;
- }
-
- async run() {
- for (const check of this._checks) {
- check.run();
- }
- }
- }
- module.exports = CheckGroup;
|