UNPKG

jest-spiratest

Version:

This reporter will integrate JestJS with Inflectra's ALM suite. It will create a test run in Spira for each test executed in Jest. ### Don't have Spira? If you haven't tried out one of our products, you can get a 30 day free trial for our flagship ALM pro

33 lines (21 loc) 598 B
module.exports = Calculator; function Calculator() { } Calculator.prototype.storedValue = undefined; Calculator.prototype.add = (val1, val2) => { return val1 + val2; } Calculator.prototype.storeValue = (toStore) => { oldValue = Calculator.prototype.storedValue; Calculator.prototype.storedValue = toStore; return oldValue; } Calculator.prototype.retrieveStoredValue = () => { return Calculator.prototype.storedValue; } Calculator.prototype.multiply = (val1, val2) => { return val1 * val2; } Calculator.prototype.exp = (val1, val2) => { return val1 ** val2; }