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