UNPKG

skutter

Version:

Skutter: Opinionated BDD Browser based test framework

20 lines (19 loc) 500 B
"use strict"; class Base { constructor(name, selector, type) { this.name = "Not Set"; if (!name) { throw new Error("[Base] name is not specified."); } if (!selector) { throw new Error("[Base] selector is not specified."); } if (!type) { throw new Error("[Base] type is not specified."); } this.name = name; this.selector = selector; this.type = type; } } exports.Base = Base;