Commit bc050db6 authored by pburdette's avatar pburdette Committed by Kamil Trzciński

Change spec to use toBe

Change spec to use toBe
since we are checking primitives
instead of objects.
parent 2759c75c
......@@ -61,7 +61,7 @@ describe('pipeline graph job item', () => {
expect(link.attributes('href')).toBe(mockJob.status.details_path);
expect(link.attributes('title')).toEqual(`${mockJob.name} - ${mockJob.status.label}`);
expect(link.attributes('title')).toBe(`${mockJob.name} - ${mockJob.status.label}`);
expect(wrapper.find('.ci-status-icon-success').exists()).toBe(true);
......@@ -85,7 +85,7 @@ describe('pipeline graph job item', () => {
expect(wrapper.find('.ci-status-icon-success').exists()).toBe(true);
expect(wrapper.find('a').exists()).toBe(false);
expect(trimText(wrapper.find('.ci-status-text').text())).toEqual(mockJobWithoutDetails.name);
expect(trimText(wrapper.find('.ci-status-text').text())).toBe(mockJobWithoutDetails.name);
});
it('should apply hover class and provided class name', () => {
......@@ -139,9 +139,7 @@ describe('pipeline graph job item', () => {
},
});
expect(wrapper.find('.js-job-component-tooltip').attributes('title')).toEqual(
'test - success',
);
expect(wrapper.find('.js-job-component-tooltip').attributes('title')).toBe('test - success');
});
});
......@@ -151,7 +149,7 @@ describe('pipeline graph job item', () => {
job: delayedJobFixture,
});
expect(findJobWithLink().attributes('title')).toEqual(
expect(findJobWithLink().attributes('title')).toBe(
`delayed job - delayed manual action (${wrapper.vm.remainingTime})`,
);
});
......
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