aboutsummaryrefslogtreecommitdiff
path: root/test/console/components/ErrorMessage.test.tsx
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2021-10-10 01:42:37 +0000
committerGitHub <noreply@github.com>2021-10-10 01:42:37 +0000
commitdfcefe1b84cc96ead1c8d8f9aa65ff05ccd70378 (patch)
tree12f1a4ed6da8fd96c034d23bcf08b1535bca1113 /test/console/components/ErrorMessage.test.tsx
parent24f4f06db6572d81cadfe191f36c433a79985871 (diff)
parent039095e18562c44edda2c5a83a3d82c2e220b370 (diff)
Merge pull request #1267 from ueokande/move-to-jest
Move to Jest
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!"]);
});
});