Farmbot-Web-App/frontend/sequences/step_tiles/mark_as/__tests__/resource_list_test.ts

15 lines
530 B
TypeScript
Raw Normal View History

2018-09-11 13:17:01 -06:00
import { resourceList } from "../resource_list";
import { markAsResourceFixture } from "../assertion_support";
describe("resourceList()", () => {
it("lists defaults, plus saved points", () => {
2018-09-11 13:17:01 -06:00
const { index } = markAsResourceFixture();
const result = resourceList(index);
expect(result.length).toBeTruthy();
const headings = result.filter(x => x.heading).map(x => x.label);
expect(headings).toContain("Device");
expect(headings).toContain("Plants");
expect(headings).toContain("Points");
});
});