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