aboutsummaryrefslogtreecommitdiff
path: root/test/console/components/ErrorMessage.test.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'test/console/components/ErrorMessage.test.tsx')
-rw-r--r--test/console/components/ErrorMessage.test.tsx7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/console/components/ErrorMessage.test.tsx b/test/console/components/ErrorMessage.test.tsx
index 46ec0b0..45b3052 100644
--- a/test/console/components/ErrorMessage.test.tsx
+++ b/test/console/components/ErrorMessage.test.tsx
@@ -1,17 +1,16 @@
import React from "react";
import ReactTestRenderer from "react-test-renderer";
-import { expect } from "chai";
import ErrorMessage from "../../../src/console/components/ErrorMessage";
describe("console/components/console/completion/ErrorMessage", () => {
it("renders an error message", () => {
const root = ReactTestRenderer.create(
- <ErrorMessage mode="error">Hello!</ErrorMessage>
+ <ErrorMessage>Hello!</ErrorMessage>
).root;
const p = root.findByType("p");
- expect(p.props["role"]).to.equal("alert");
- expect(p.children).to.deep.equal(["Hello!"]);
+ expect(p.props["role"]).toEqual("alert");
+ expect(p.children).toEqual(["Hello!"]);
});
});