updates to tests

pull/1155/head
Rick Carlino 2019-04-15 19:11:35 -07:00
parent a9b6492823
commit ee23635dd0
3 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ describe("locationFormList()", () => {
const toolHeading = items[1];
expect(toolHeading).toEqual({
headingId: "Tool",
label: "Tools",
label: "Tools and Seed Containers",
value: 0,
heading: true,
});

View File

@ -28,11 +28,11 @@ describe("<Tools />", () => {
const wrapper = mount(<Tools {...fakeProps()} />);
const txt = wrapper.text();
const strings = [
"ToolBay 1",
"Tool Slots",
"SlotXYZ",
"Tool1000Foo",
"Tool or Seed Container",
"Tools",
"Tool NameStatus",
"NameStatus",
"Fooactive"];
strings.map(string => expect(txt).toContain(string));
});

View File

@ -5,6 +5,6 @@ import { mount } from "enzyme";
describe("<ToolBayHeader />", () => {
it("renders", () => {
const header = mount(<ToolBayHeader />);
expect(header.text()).toEqual("SlotXYZTool");
expect(header.text()).toEqual("SlotXYZTool or Seed Container");
});
});