mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
fixed warnings on test execution
This commit is contained in:
@@ -1,15 +1,11 @@
|
||||
import React from "react";
|
||||
import { configure, mount, shallow } from "enzyme";
|
||||
import { mount, shallow } from "enzyme";
|
||||
import "../../tests/enzyme";
|
||||
import DeleteUserButton from "./DeleteUserButton";
|
||||
import Adapter from "enzyme-adapter-react-16";
|
||||
|
||||
import { confirmAlert } from "../../components/ConfirmAlert";
|
||||
jest.mock("../../components/ConfirmAlert");
|
||||
|
||||
import "raf/polyfill";
|
||||
|
||||
configure({ adapter: new Adapter() });
|
||||
|
||||
describe("DeleteUserButton", () => {
|
||||
it("should render nothing, if the delete link is missing", () => {
|
||||
const entry = {
|
||||
@@ -38,9 +34,6 @@ describe("DeleteUserButton", () => {
|
||||
const button = mount(
|
||||
<DeleteUserButton entry={entry} deleteUser={() => {}} />
|
||||
);
|
||||
|
||||
console.log(button);
|
||||
|
||||
expect(button.text()).not.toBe("");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user