Commit fcb0c2f9 authored by Scott Hampton's avatar Scott Hampton

Refactor spec to use `toHaveLength`

Refactor the spec based on suggestion to use
`toHaveLength` instead of comparing length
integers.
parent 4060f50f
......@@ -68,7 +68,7 @@ describe('Test reports suite table', () => {
beforeEach(() => createComponent());
it('renders the correct number of rows', () => {
expect(allCaseRows().length).toBe(testCases.length);
expect(allCaseRows()).toHaveLength(testCases.length);
});
it.each([
......@@ -125,7 +125,7 @@ describe('Test reports suite table', () => {
})),
});
expect(allCaseRows().length).toBe(testCases.length);
expect(allCaseRows()).toHaveLength(testCases.length);
});
});
......@@ -139,7 +139,7 @@ describe('Test reports suite table', () => {
})),
});
expect(allCaseRows().length).toBe(testCases.length);
expect(allCaseRows()).toHaveLength(testCases.length);
});
});
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment