Skip to content

Commit

Permalink
test: fix createCommitApi path
Browse files Browse the repository at this point in the history
  • Loading branch information
avitorio committed Dec 24, 2023
1 parent 8f69e4a commit 275055e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/outstatic/src/components/DeleteDocumentButton/test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react'
import { render, fireEvent, waitFor, screen } from '@testing-library/react'
import DeleteDocumentButton from '../DeleteDocumentButton'
import { fireEvent, render, screen, waitFor } from '@testing-library/react'
import { TestWrapper } from '../../utils/TestWrapper'
import DeleteDocumentButton from '../DeleteDocumentButton'

// Mock the useOstSession hook
jest.mock('../../utils/auth/hooks', () => ({
Expand All @@ -18,9 +17,9 @@ jest.mock('../../utils/auth/hooks', () => ({
// Mock useOid hook
jest.mock('../../utils/hooks/useOid', () => () => jest.fn())

// // Mock createCommitApi
jest.mock('../../utils/createCommit', () => ({
createCommit: () => ({
// Mock createCommitApi
jest.mock('../../utils/createCommitApi', () => ({
createCommitApi: () => ({
removeFile: jest.fn(),
replaceFile: jest.fn(),
createInput: jest.fn()
Expand Down

0 comments on commit 275055e

Please sign in to comment.