all files / ui/ ComponentRegistry.js

66.67% Statements 2/3
50% Branches 1/2
100% Functions 2/2
66.67% Lines 2/3
1 2 3 4 5 6 7 8 9 10 11 12 13 14        205× 2870×                
import { Registry } from '../util'
 
class ComponentRegistry extends Registry {
  constructor(entries) {
    super(entries, function(ComponentClass) {
      Iif (!ComponentClass.prototype._isComponent) {
        throw new Error('Component registry: wrong type. Expected a ComponentClass. Was: ' + String(ComponentClass))
      }
    })
  }
}
 
export default ComponentRegistry