#6938 add scope & acls #2301

Merged
jorgep merged 7 commits from 6938-hideWorkerPhone into dev 2024-04-16 06:38:47 +00:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit 3c9ac9634b - Show all commits

View File

@ -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);
});
});