This commit is contained in:
parent
3e1218463c
commit
3c9ac9634b
|
@ -14,14 +14,14 @@ describe('vnWorkerDescriptor', () => {
|
|||
describe('loadData()', () => {
|
||||
it(`should perform a get query to store the worker data into the controller`, () => {
|
||||
const id = 1;
|
||||
const response = 'foo';
|
||||
const response = ['foo'];
|
||||
|
||||
$httpBackend.whenGET('UserConfigs/getUserConfig').respond({});
|
||||
$httpBackend.expectRoute('GET', `Workers/${id}`).respond(response);
|
||||
$httpBackend.expectRoute('GET', `Workers/summary`).respond(response);
|
||||
controller.id = id;
|
||||
$httpBackend.flush();
|
||||
|
||||
expect(controller.worker).toEqual(response);
|
||||
expect([controller.worker]).toEqual(response);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue