Skip to content

Commit e871659

Browse files
thquadrichard-cox
authored andcommitted
Adjust front-end tests (#4876)
Signed-off-by: Thomas Quandt <[email protected]>
1 parent 46d16df commit e871659

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

src/frontend/packages/cloud-foundry/src/shared/services/current-user-permissions-and-cfchecker.service.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ describe('CurrentUserPermissionsService with CF checker', () => {
6666
},
6767
creator: {
6868
name: 'admin',
69-
admin: true
69+
admin: true,
70+
system: false
7071
},
7172
metricsAvailable: false,
7273
connectionStatus: 'connected',
@@ -108,7 +109,8 @@ describe('CurrentUserPermissionsService with CF checker', () => {
108109
},
109110
creator: {
110111
name: 'admin',
111-
admin: true
112+
admin: true,
113+
system: false
112114
},
113115
metricsAvailable: false,
114116
connectionStatus: 'connected',

src/frontend/packages/core/src/core/permissions/current-user-permissions.service.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ describe('CurrentUserPermissionsService', () => {
5252
},
5353
creator: {
5454
name: 'admin',
55-
admin: true
55+
admin: true,
56+
system: false
5657
},
5758
metricsAvailable: false,
5859
connectionStatus: 'connected',
@@ -89,7 +90,8 @@ describe('CurrentUserPermissionsService', () => {
8990
},
9091
creator: {
9192
name: 'admin',
92-
admin: true
93+
admin: true,
94+
system: false
9395
},
9496
metricsAvailable: false,
9597
connectionStatus: 'connected',

src/frontend/packages/store/testing/src/store-test-helper.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ export const testSCFEndpoint: EndpointModel = {
4949
metricsAvailable: false,
5050
creator: {
5151
name: 'admin',
52-
admin: true
52+
admin: true,
53+
system: false
5354
}
5455
};
5556

@@ -305,7 +306,8 @@ function getDefaultInitialTestStoreState(): AppState<BaseEntityValues> {
305306
},
306307
creator: {
307308
name: 'admin',
308-
admin: true
309+
admin: true,
310+
system: false
309311
},
310312
connectionStatus: 'connected',
311313
system_shared_token: false,

0 commit comments

Comments
 (0)