Skip to content

Commit

Permalink
Fix status-bar test
Browse files Browse the repository at this point in the history
  • Loading branch information
BenRussert authored and lgeiger committed Aug 11, 2018
1 parent 7ebc384 commit ea9f491
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions spec/components/status-bar-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,17 @@ describe("Status Bar", () => {
expect(component.text()).toBe("Javascript | idle");
});

xit("hides the component based on config setting", () => {
it("hides the component based on config setting", () => {
// disable the status bar
store.setConfigValue("Hydrogen.statusBarDisable", true);
expect(store.kernel).toBeDefined();
const component = shallow(<StatusBar store={store} onClick={() => {}} />);

expect(component.text()).toBe("");

// re-enable the status bar
store.setConfigValue("Hydrogen.statusBarDisable", false);
expect(component.text()).not.toBe("Javascript | idle");
expect(component.text()).toBe("Javascript | idle");
});
});

Expand Down

0 comments on commit ea9f491

Please sign in to comment.