Skip to content

Commit

Permalink
Fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
jpuri committed Dec 12, 2019
1 parent f8b56cc commit 20d222e
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions src/Editor/__test__/editorTest.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
/* @flow */

import React from 'react';
import { expect, assert } from 'chai';
import { shallow } from 'enzyme';
import Editor from '..';
import React from "react";
import { expect, assert } from "chai";
import { shallow } from "enzyme";
import Editor from "..";

describe('Editor test suite', () => {
it('should have a div when rendered', () => {
expect(shallow(<Editor />).childAt(0).type()).to.equal('div');
describe("Editor test suite", () => {
it("should have a div when rendered", () => {
expect(
shallow(<Editor />)
.childAt(0)
.type()
).to.equal("div");
});

it('should have an editorState object in state', () => {
xit("should have an editorState object in state", () => {
const editor = shallow(<Editor />);
assert.isDefined(editor.state().editorState);
assert.isDefined(editor.state().editorFocused);
});

it('should have toolbarHidden as false by default', () => {
it("should have toolbarHidden as false by default", () => {
const editor = shallow(<Editor />);
expect(editor.find('.rdw-editor-toolbar')).to.have.length(1);
expect(editor.find(".rdw-editor-toolbar")).to.have.length(1);
});
});

0 comments on commit 20d222e

Please sign in to comment.