Commit 6a8faac2 authored by Phil Hughes's avatar Phil Hughes

fixed mr widget options spec

parent 855c258f
......@@ -247,10 +247,9 @@ describe('mrWidgetOptions', () => {
beforeEach(() => {
const favicon = document.createElement('link');
favicon.setAttribute('id', 'favicon');
favicon.setAttribute('href', 'default/favicon');
document.body.appendChild(favicon);
faviconElement = document.body.getElementById('favicon');
faviconElement = document.getElementById('favicon');
});
afterEach(() => {
......@@ -258,7 +257,7 @@ describe('mrWidgetOptions', () => {
});
it('should call setFavicon method', () => {
vm.setFavicon();
vm.setFaviconHelper();
expect(faviconElement.getAttribute('href')).toEqual(vm.mr.ciStatusFaviconPath);
});
......
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