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

13 lines
325 B
JavaScript

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(260);
done();
});
});
});