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

13 lines
327 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 => {
expect(response.mana).toEqual(30.02);
done();
});
});
});