Fix test breakage due to refactoring

bust_cache
Rick Carlino 2020-01-02 15:46:52 -06:00
parent f9e5559ee0
commit 0d9bf3ccc5
1 changed files with 2 additions and 3 deletions

View File

@ -27,10 +27,9 @@ describe("<TileTogglePin/>", () => {
const block = mount(<TileTogglePin {...fakeProps()} />);
const inputs = block.find("input");
const labels = block.find("label");
expect(inputs.length).toEqual(2);
expect(inputs.length).toEqual(1);
expect(labels.length).toEqual(1);
expect(inputs.first().props().placeholder).toEqual("Toggle Pin");
expect(labels.at(0).text()).toContain("Pin");
expect(inputs.at(1).props().value).toEqual(13);
expect(labels.at(0).text()).toContain("Peripheral");
});
});