20 lines
426 B
JavaScript
20 lines
426 B
JavaScript
const getMana = require('../getMana');
|
|
const {rawSql} = require('../../../test-helpers/rawSql');
|
|
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();
|
|
});
|
|
});
|
|
});
|
|
|