all files / src/errors/ behaviour-not-unique-error.js

100% Statements 25/25
100% Branches 29/29
100% Functions 6/6
100% Lines 2/2
3 statements, 9 branches Ignored     
1 2 3 4 5 6 7           
import BadBehaviourError from './bad-behaviour-error';
 
export default class BehaviourNotUniqueError extends BadBehaviourError {
    constructor(experiment, name) {
        super(experiment || null, name || "", `${(experiment || {name: ""}).name} already has ${name} behaviour`);
    }
}