mirror of
https://github.com/wassname/talk.git
synced 2026-08-20 12:50:41 +08:00
roles -> role, null -> COMMENTER for user roles
This commit is contained in:
@@ -13,7 +13,7 @@ describe('graph.Context', () => {
|
||||
let c;
|
||||
|
||||
beforeEach(() => {
|
||||
c = new Context({user: new User({id: '1', roles: ['ADMIN']})});
|
||||
c = new Context({user: new User({id: '1', role: 'ADMIN'})});
|
||||
});
|
||||
|
||||
it('creates a context with a user', (done) => {
|
||||
|
||||
Reference in New Issue
Block a user