salix/services/loopback/common/methods/client/specs/getMana.spec.js

13 lines
325 B
JavaScript
Raw Normal View History

const app = require(`${servicesDir}/client/server/server`);
describe('client getMana()', () => {
it('should call the getMana method', done => {
app.models.Client.getMana(101)
.then(response => {
2018-07-30 13:21:12 +00:00
expect(response.mana).toEqual(260);
done();
});
});
});