all files / src/ root-node.js

100% Statements 28/28
100% Branches 6/6
100% Functions 5/5
100% Lines 7/7
2 branches Ignored     
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22     49× 49×                            
import Node from './node';
import SelectGenerator from './select-generator';
 
export default class RootNode extends Node {
  constructor(value, config) {
    const parentNode = {
      _selectGenerator: new SelectGenerator(config)
    }
    // probable transpilation issue - istanbul issue #690
    /*istanbul ignore next*/
    super(undefined, value, parentNode, false);
  }
 
  get parentNode() {
    return undefined;
  }
 
  get path() {
    return [];
  }
}