modeltime
Version:
Test and use time in javascript
27 lines (19 loc) • 766 B
JavaScript
/**
In this file we describe the tests in terms of user actions and expectations.
We could also talk about situations in the the environment that can't be affected by the user like "today is Monday".
**/
const {expect} = require('chai');
const User = require('./test-user.js');
module.exports = function(user_interface){
describe('sum', function(){
let user
this.beforeEach(async function(){
user = User(user_interface)
})
it('basic sum', async () => {
let result = await user.sum(1,2)
expect(result).to.equal(3);
});
it('sum property based'); //https://github.com/dubzzz/fast-check/blob/main/packages/fast-check/documentation/Arbitraries.md#combinators
})
}