Add iOS node push-token registration foundation
This commit is contained in:
@@ -198,5 +198,16 @@ describe('authorizeNodeMethod', () => {
|
||||
},
|
||||
});
|
||||
expect(deniedStatus.authenticated).toBe(false);
|
||||
|
||||
const allowedPush = authorizeNodeMethod({
|
||||
enabled: true,
|
||||
method: 'node.push_token.set',
|
||||
nodeRole: 'companion',
|
||||
allowedRoles: ['companion'],
|
||||
roleScopes: {
|
||||
companion: ['node.capabilities.get', 'node.push_token.set'],
|
||||
},
|
||||
});
|
||||
expect(allowedPush.authenticated).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user