UNPKG

@stryker-mutator/core

Version:

The extendable JavaScript mutation testing framework

26 lines 684 B
import { commonTokens, tokens } from '@stryker-mutator/api/plugin'; export class HelloClass { constructor(options) { this.options = options; } sayHello() { return `hello from ${HelloClass.name}`; } sayDelayed() { return new Promise((res) => res(`delayed hello from ${HelloClass.name}`)); } say(...things) { return `hello ${things.join(' and ')}`; } sum(a, b) { return a + b; } reject() { return Promise.reject(new Error('Rejected')); } throw(message) { throw new Error(message); } } HelloClass.inject = tokens(commonTokens.options); //# sourceMappingURL=hello-class.js.map