Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarDamkjaer committed Oct 30, 2020
1 parent 6dd0f57 commit a978f37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/browser/modules/User/UserAdd.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import React from 'react'
import { createBus } from 'suber'

import { UserAdd } from './UserAdd'
import { CYPHER_REQUEST } from 'shared/modules/cypher/cypherDuck'
import { ROUTED_CYPHER_REQUEST } from 'shared/modules/cypher/cypherDuck'
import { listRolesQuery } from 'shared/modules/cypher/boltUserHelper'

// Stubbing out title bar as it depends on store
Expand All @@ -41,7 +41,7 @@ describe('<UserAdd />', () => {
}

const busCallback = jest.fn()
bus.one(CYPHER_REQUEST, busCallback)
bus.one(ROUTED_CYPHER_REQUEST, busCallback)

render(<UserAdd {...props} />)

Expand Down
6 changes: 3 additions & 3 deletions src/browser/modules/User/UserList.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import React from 'react'
import { createBus } from 'suber'

import { UserList } from './UserList'
import { CYPHER_REQUEST } from 'shared/modules/cypher/cypherDuck'
import { ROUTED_CYPHER_REQUEST } from 'shared/modules/cypher/cypherDuck'
import {
listRolesQuery,
listUsersQuery
Expand All @@ -44,7 +44,7 @@ describe('<UserList />', () => {
}

const busCallback = jest.fn()
bus.take(CYPHER_REQUEST, busCallback)
bus.take(ROUTED_CYPHER_REQUEST, busCallback)

render(<UserList {...props} />)

Expand All @@ -68,7 +68,7 @@ describe('<UserList />', () => {
}

const busCallback = jest.fn()
bus.take(CYPHER_REQUEST, busCallback)
bus.take(ROUTED_CYPHER_REQUEST, busCallback)

render(<UserList {...props} />)

Expand Down

0 comments on commit a978f37

Please sign in to comment.