just-test
Version:
JavaScript tests runner
19 lines (16 loc) • 416 B
JavaScript
import { EventEmitter } from 'events';
export class EnvironmentBase extends EventEmitter {
constructor(sessionId) {
super();
if (!sessionId || typeof sessionId !== 'string') {
throw new Error(`invalid session ID '${sessionId}'`);
}
this.sessionId = sessionId;
}
async launch() {
throw new Error('not implemented');
}
async dismiss() {
throw new Error('not implemented');
}
}