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-04-18 11:40:09 +00:00
|
|
|
expect(response.mana).toEqual(30.02);
|
2018-04-13 16:32:20 +00:00
|
|
|
done();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|