flagpole
Version:
Simple and fast DOM integration, headless or headful browser, and REST API testing framework.
19 lines • 492 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class LogCollection {
constructor() {
this._logItems = [];
}
get items() {
return this._logItems;
}
add(item) {
if (item && Reflect.has(item, 'className')) {
this._logItems.push(item);
return;
}
throw new TypeError(`Not a log item: ${item}`);
}
}
exports.LogCollection = LogCollection;
//# sourceMappingURL=logcollection.js.map