test fixed

This commit is contained in:
Gerard 2018-11-23 08:56:53 +01:00
parent 77d6da3a7f
commit 0f4b6b85c1
1 changed files with 1 additions and 7 deletions

View File

@ -19,12 +19,6 @@ describe('Order', () => {
}));
describe('set order', () => {
it(`should not set order if the value given is null`, () => {
controller.order = null;
expect(controller.order).toEqual({});
});
it(`should set order if the value given is not null`, () => {
controller.order = 1;
@ -88,7 +82,7 @@ describe('Order', () => {
$httpBackend.flush();
expect(controller.vnApp.showSuccess).toHaveBeenCalledWith('Data saved!');
expect(controller.$state.go).toHaveBeenCalledWith("order.card.catalog", {id: 1});
expect(controller.$state.go).toHaveBeenCalledWith('order.card.catalog', {id: 1});
});
});
});