test fixed
This commit is contained in:
parent
77d6da3a7f
commit
0f4b6b85c1
|
@ -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});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue