2018-04-13 16:32:20 +00:00
|
|
|
const getMana = require('../getMana');
|
2018-04-17 11:38:40 +00:00
|
|
|
const {rawSql} = require('../../../test-helpers/rawSql');
|
2018-04-13 16:32:20 +00:00
|
|
|
const model = {
|
|
|
|
remoteMethod: () => {}
|
|
|
|
};
|
|
|
|
|
|
|
|
rawSql(model);
|
|
|
|
getMana(model);
|
|
|
|
|
|
|
|
describe('client getMana()', () => {
|
|
|
|
it('should call the getMana method', done => {
|
|
|
|
model.getMana(101)
|
|
|
|
.then(response => {
|
|
|
|
expect(response.mana).toEqual(0);
|
|
|
|
done();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|