mirror of
https://github.com/SomboChea/ui
synced 2026-01-19 01:25:51 +07:00
fix: missing headers on search endpoint with token (#121)
Headers should be part of the options if we override options. https://github.com/verdaccio/ui/issues/118
This commit is contained in:
committed by
GitHub
parent
97e8448098
commit
ac58730e8c
@@ -9,7 +9,6 @@ import Version from './Version';
|
||||
import { waitForElement } from '@testing-library/dom';
|
||||
import ErrorBoundary from '../../App/AppError';
|
||||
import { LABEL_NOT_FOUND } from '../../components/NotFound/NotFound';
|
||||
// import { NOT_FOUND_TEXT } from '../../components/NotFound/NotFound';
|
||||
|
||||
// :-) we mock this otherways fails on render, some weird issue on material-ui
|
||||
jest.mock('@material-ui/core/Avatar');
|
||||
@@ -27,6 +26,8 @@ describe('test Version page', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
jest.resetAllMocks();
|
||||
// @ts-ignore
|
||||
fetch.resetMocks();
|
||||
});
|
||||
|
||||
test('should render the version page', async () => {
|
||||
|
||||
Reference in New Issue
Block a user