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

13 lines
324 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(50);
done();
});
});
});