tests fixed

This commit is contained in:
Daniel Herrero 2017-11-30 14:05:47 +01:00
parent c8dcf2b971
commit 30d59a6843
2 changed files with 2 additions and 5 deletions

View File

@ -25,9 +25,6 @@ describe('Client', () => {
describe('copyData()', () => {
it(`should define billData using client's data`, () => {
controller.client = {
credit: 1000000000000,
creditInsurance: null,
discount: 99,
dueDay: 0,
iban: null,
payMethodFk: 1

View File

@ -100,11 +100,11 @@ describe('Component vnWatcher', () => {
it(`should call controller.$state.go() function after calling controllers submit() function`, done => {
spyOn(controller, 'submit').and.returnValue(Promise.resolve());
spyOn(controller.$state, 'go');
let state = 'the state';
let state = 'the.State';
controller.submitGo(state)
.then(() => {
expect(controller.submit).toHaveBeenCalledWith();
expect(controller.$state.go).toHaveBeenCalledWith(state);
expect(controller.$state.go).toHaveBeenCalledWith(state, {});
done();
});
});