blob: 5b678ff8556e94dd223935a09fa2c79c853fbde6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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>
).root;
const p = root.findByType("p");
expect(p.props["role"]).to.equal("status");
expect(p.children).to.deep.equal(["Hello!"]);
});
});
|