Don't change any equipment state when running tests
This is handy for testing certain mutators, but shouldn't happen every time we run tests. It can be enabled by the user on a case-by-case basis.
This commit is contained in:
@ -25,10 +25,10 @@ describe('Unit', () => {
|
||||
unit.close();
|
||||
});
|
||||
|
||||
let circuit;
|
||||
// let circuit;
|
||||
it('gets pool status', done => {
|
||||
unit.on('poolStatus', status => {
|
||||
circuit = status.circuitArray[0];
|
||||
/* circuit = */status.circuitArray[0];
|
||||
done();
|
||||
});
|
||||
|
||||
@ -63,10 +63,12 @@ describe('Unit', () => {
|
||||
unit.getVersion();
|
||||
});
|
||||
|
||||
/* uncomment this and the `circuit` stuff above to test setting state
|
||||
it('sets circuit state', done => {
|
||||
unit.on('circuitStateChanged', () => {
|
||||
done();
|
||||
});
|
||||
unit.setCircuitState(0, circuit.id, circuit.state);
|
||||
});
|
||||
*/
|
||||
});
|
||||
|
Reference in New Issue
Block a user