Fix tests errors and warnings - iteration 3 (#12212) (#12219)

This commit is contained in:
Michael S. Molina
2021-01-26 04:40:59 -03:00
committed by GitHub
parent 22d52eadb2
commit 6bf5d2c06d
6 changed files with 62 additions and 5 deletions

View File

@@ -24,6 +24,9 @@ import URLShortLinkModal from 'src/components/URLShortLinkModal';
import HeaderActionsDropdown from 'src/dashboard/components/HeaderActionsDropdown';
import SaveModal from 'src/dashboard/components/SaveModal';
import CssEditor from 'src/dashboard/components/CssEditor';
import fetchMock from 'fetch-mock';
fetchMock.get('glob:*/csstemplateasyncmodelview/api/read', {});
describe('HeaderActionsDropdown', () => {
const props = {
@@ -50,6 +53,7 @@ describe('HeaderActionsDropdown', () => {
updateCss: () => {},
userCanEdit: false,
userCanSave: false,
lastModifiedTime: 0,
};
function setup(overrideProps) {