Skip to content

Commit

Permalink
test: mock subscribeToProjectChanges
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme-NL committed Oct 11, 2023
1 parent 6248725 commit a6eb827
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/javascripts/components/projects/project_board_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import { shallow } from 'enzyme';
import { ProjectBoard } from 'components/projects/ProjectBoard';
import storyFactory from '../../support/factories/storyFactory';

jest.mock('../../../../app/assets/javascripts/pusherSockets', () => ({
subscribeToProjectChanges: jest.fn(),
}));

describe('<ProjectBoard />', () => {
const render = props => {
const defaultProps = {
Expand Down

0 comments on commit a6eb827

Please sign in to comment.