Skip to content

Commit

Permalink
added roles
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddentao committed Nov 24, 2018
1 parent 3959dc2 commit e1ef5ba
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wearekickback/shared",
"version": "1.7.0",
"version": "1.8.0",
"description": "Shared utils between client and server",
"main": "dist/index.js",
"module": "src/index.js",
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ export * from './legal'
export * from './participants'
export * from './social'
export * from './uuid'
export * from './role'
4 changes: 4 additions & 0 deletions src/role.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export const ROLE = {
SUPER_ADMIN: 'SUPER_ADMIN',
EVENT_ADMIN: 'EVENT_ADMIN',
}
12 changes: 12 additions & 0 deletions src/role.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import {
ROLE
} from './'

describe('role', () => {
it('is exported', () => {
expect(ROLE).toEqual({
SUPER_ADMIN: 'SUPER_ADMIN',
EVENT_ADMIN: 'EVENT_ADMIN',
})
})
})

0 comments on commit e1ef5ba

Please sign in to comment.