UNPKG

jasmine-spiratest

Version:

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

37 lines (24 loc) 664 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.ln = (val) => { return Math.log(val); } Calculator.prototype.exp = (val1, val2) => { return val1 ** val2; }