# all files / src/models/ task.js

100% Statements 28/28
100% Branches 10/10
100% Functions 7/7
100% Lines 5/5
2 statements, 4 branches Ignored

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    1×
    1×
    1×

    1×

     class Task {
      constructor(environment) {
        this.ui = environment.ui;
        this.settings = environment.settings;
      }

      run() {
        throw new Error('Tasks must implement run()');
      }
    }

    export default Task;