Skip to content

Commit

Permalink
Remove previous copy to clipboard mock
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenSandwich committed Nov 30, 2023
1 parent 95616ec commit 37d8bfb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/code-block/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ import {
} from '@testing-library/react'
import CodeBlock from './'
import { heapAttributes } from './analytics'
// Mock copy-to-clipboard
import copyToClipboard from './partials/clipboard-button/copy-to-clipboard'
jest.mock('./partials/clipboard-button/copy-to-clipboard', () =>
jest.fn().mockImplementation(() => true)
)
// We want to make sure copied code is passed through processSnippet,
// we import it so that we don't have to manually recreate its output
import processSnippet from './utils/process-snippet'
Expand Down

0 comments on commit 37d8bfb

Please sign in to comment.