Commit 5477331b authored by Phil Hughes's avatar Phil Hughes

fix code quality spec

parent 9173cbf6
...@@ -107,7 +107,7 @@ describe('Merge Request Code Quality', () => { ...@@ -107,7 +107,7 @@ describe('Merge Request Code Quality', () => {
Vue.nextTick(() => { Vue.nextTick(() => {
expect( expect(
vm.$el.querySelector('.code-quality-container').getAttribute('style'), vm.$el.querySelector('.code-quality-container').getAttribute('style'),
).toEqual(null); ).toEqual('');
expect( expect(
vm.$el.querySelector('button').textContent.trim(), vm.$el.querySelector('button').textContent.trim(),
).toEqual('Collapse'); ).toEqual('Collapse');
...@@ -121,9 +121,10 @@ describe('Merge Request Code Quality', () => { ...@@ -121,9 +121,10 @@ describe('Merge Request Code Quality', () => {
expect( expect(
vm.$el.querySelector('button').textContent.trim(), vm.$el.querySelector('button').textContent.trim(),
).toEqual('Expand'); ).toEqual('Expand');
done();
}); });
}); });
done();
}, 0); }, 0);
}); });
}); });
......
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