Fix tests

This commit is contained in:
Richard Dodd
2018-08-12 21:27:27 +01:00
parent 23009dbc1e
commit 4f0ddd25ce
3 changed files with 12 additions and 12 deletions

View File

@ -1,11 +1,11 @@
const strictEqual = require('assert').strictEqual;
global.math = class {
powf(base, exp) {
return Math.pow(base, exp);
}
global.mathtest = {};
add_one(val) {
return val + 1;
}
};
global.mathtest.powf = function powf(base, exp) {
return Math.pow(base, exp);
}
global.mathtest.add_one = function add_one(val) {
return val + 1;
}