import React from "react";
import { mount } from "enzyme";
import NotebookPreview from "./NotebookPreview";
describe("NotebookPreview", function () {
  it("should render NotebookPreview", function () {
    var wrapper = mount(React.createElement(NotebookPreview, null));
    expect(wrapper.find("NotebookPreview")).to.have.length(1);
    expect(wrapper.find("NotebookPreview").children()).to.have.length(1);
  });
  it("should have the appropriate default message", function () {
    var defaultMessage = "See the data science notebook";
    var wrapper = mount(React.createElement(NotebookPreview, null));
    expect(wrapper.find("NotebookPreview").children().first().text()).to.eql(" ".concat(defaultMessage));
  });
  it("should have the appropriate prop message", function () {
    var messageProp = "Oooh! Dynamic text";
    var wrapper = mount(React.createElement(NotebookPreview, {
      message: messageProp
    }));
    expect(wrapper.find("NotebookPreview").children().first().text()).to.eql(" ".concat(messageProp));
  });
});