We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbdff1e commit 5582978Copy full SHA for 5582978
tests/basic.spec.js
@@ -20,3 +20,26 @@ test('User with no iam groups gets no access', async () => {
20
specialGroup: {},
21
})
22
23
+
24
+test('User with employee iam gets employee special group', async () => {
25
+ const res = await api.post('', {
26
+ userId: 'user-1',
27
+ iamGroups: ['hy-employees'],
28
+ })
29
30
+ expect(res.status).toBe(200)
31
+ expect(await res.json()).toEqual({
32
+ specialGroup: {
33
+ employee: true,
34
+ },
35
36
+})
37
38
+test('User without employee iam gets no special groups', async () => {
39
+ const res = await api.post('', { userId: 'user-1', iamGroups: ['hy-pelle'] })
40
41
42
43
+ specialGroup: {},
44
45
0 commit comments