This commit is contained in:
parent
6065c056e2
commit
0a4bd0f2d5
|
@ -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/descriptor').respond(response);
|
||||
controller.id = id;
|
||||
$httpBackend.flush();
|
||||
|
||||
expect(controller.worker).toEqual(response);
|
||||
expect(controller.worker).toEqual(response[0]);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue