From 38142b371fbd8eed79d7443be6d2fe1e88814fa4 Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Wed, 21 Jun 2017 01:19:30 +0200 Subject: [PATCH] WIP: fix js tests for acl --- public/app/features/dashboard/acl/specs/acl_specs.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/public/app/features/dashboard/acl/specs/acl_specs.ts b/public/app/features/dashboard/acl/specs/acl_specs.ts index c8da0df6dfa..7b26476719a 100644 --- a/public/app/features/dashboard/acl/specs/acl_specs.ts +++ b/public/app/features/dashboard/acl/specs/acl_specs.ts @@ -37,13 +37,13 @@ describe('AclCtrl', () => { }); it('should parse the result and save to db', () => { - expect(backendSrv.post.getCall(0).args[0]).to.eql('/api/dashboards/1/acl'); + expect(backendSrv.post.getCall(0).args[0]).to.eql('/api/dashboards/id/1/acl'); expect(backendSrv.post.getCall(0).args[1].userId).to.eql(2); - expect(backendSrv.post.getCall(0).args[1].permissionType).to.eql(1); + expect(backendSrv.post.getCall(0).args[1].permissions).to.eql(1); }); it('should refresh the list after saving.', () => { - expect(backendSrv.get.getCall(0).args[0]).to.eql('/api/dashboards/1/acl'); + expect(backendSrv.get.getCall(0).args[0]).to.eql('/api/dashboards/id/1/acl'); }); it('should reset userId', () => { @@ -65,13 +65,13 @@ describe('AclCtrl', () => { }); it('should parse the result and save to db', () => { - expect(backendSrv.post.getCall(0).args[0]).to.eql('/api/dashboards/1/acl'); + expect(backendSrv.post.getCall(0).args[0]).to.eql('/api/dashboards/id/1/acl'); expect(backendSrv.post.getCall(0).args[1].userGroupId).to.eql(2); - expect(backendSrv.post.getCall(0).args[1].permissionType).to.eql(1); + expect(backendSrv.post.getCall(0).args[1].permissions).to.eql(1); }); it('should refresh the list after saving.', () => { - expect(backendSrv.get.getCall(0).args[0]).to.eql('/api/dashboards/1/acl'); + expect(backendSrv.get.getCall(0).args[0]).to.eql('/api/dashboards/id/1/acl'); }); it('should reset userGroupId', () => {