all files / src/ select-generator.js

100% Statements 18/18
100% Branches 4/4
100% Functions 4/4
100% Lines 7/7
1 branch Ignored     
1 2 3 4 5 6 7 8 9 10 11 12 13 14     49× 49× 49×       160×      
import {getTagMap} from './tag';
import {LEAF} from './generators';
 
export default class SelectGenerator {
  constructor(config) {
    this.skipIteration = config.skipIteration;
    this.tagMap = getTagMap(config);
  }
 
  getGenerator(tag) {
    return this.tagMap[tag];
  }
}