diff --git a/front/core/components/crud-model/index.spec.js b/front/core/components/crud-model/index.spec.js index 0927b75eb..4e2ee311e 100644 --- a/front/core/components/crud-model/index.spec.js +++ b/front/core/components/crud-model/index.spec.js @@ -73,17 +73,6 @@ describe('Component vnCrudModel', () => { }); }); - describe('autoRefresh()', () => { - it('', () => { - // spyOn(controller, 'autoRefresh'); - // spyOn(controller, 'clear'); - - // controller.url = '/TestUrl'; - - // expect(controller.url).toEqual('/TestUrl'); - }); - }); - describe('buildFilter()', () => { it('should build a filter and return it', () => { controller.order = 'id ASC'; @@ -226,13 +215,18 @@ describe('Component vnCrudModel', () => { }); }); - xdescribe('onRemoteError()', () => { + describe('onRemoteError()', () => { it('should check the error', () => { spyOn(controller, 'onRequestEnd'); - controller.onRemoteError(); + let error; + try { + controller.onRemoteError('TestError'); + } catch (e) { + error = e.message; + } - // expect(controller.url).toEqual('/TestUrl'); + expect(error).toBe('errasdor'); }); }); });