Commit a0ad47b7 authored by peterhegman's avatar peterhegman

Refactor test to use `toHaveLength` matcher

parent 1e1ebea6
......@@ -195,7 +195,7 @@ describe('ErrorDetails', () => {
expect(wrapper.find(GlLoadingIcon).exists()).toBe(true);
expect(wrapper.find(Stacktrace).exists()).toBe(false);
expect(wrapper.find(GlBadge).exists()).toBe(false);
expect(wrapper.findAll(GlButton).length).toBe(3);
expect(wrapper.findAll(GlButton)).toHaveLength(3);
});
describe('unsafe chars for culprit field', () => {
......
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