Skip to content

Commit

Permalink
fix(TaskFileViewer-tests): fix tests that were skipped
Browse files Browse the repository at this point in the history
Fixed vartiable declarations and import ReactDOM
  • Loading branch information
Fabs committed Mar 5, 2018
1 parent d7c03f1 commit d24a5cd
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import TaskFileViewer from "../TaskFileViewer";

let thisContainer, thisInstance;

describe.skip("TaskFileViewer", function() {
describe("TaskFileViewer", function() {
beforeEach(function() {
thisContainer = global.document.createElement("div");
thisInstance = ReactDOM.render(
Expand All @@ -31,7 +31,7 @@ describe.skip("TaskFileViewer", function() {

describe("#render", function() {
beforeEach(function() {
this.container = global.document.createElement("div");
thisContainer = global.document.createElement("div");
this.instance = ReactDOM.render(
<TaskFileViewer
directory={
Expand All @@ -41,12 +41,12 @@ describe.skip("TaskFileViewer", function() {
selectedLogFile={new DirectoryItem({ nlink: 1, path: "/stdout" })}
task={{ slave_id: "foo" }}
/>,
this.container
thisContainer
);
});

afterEach(function() {
ReactDOM.unmountComponentAtNode(this.container);
ReactDOM.unmountComponentAtNode(thisContainer);
});
it("sets button disabled when file is not found", function() {
thisInstance = ReactDOM.render(
Expand Down

0 comments on commit d24a5cd

Please sign in to comment.