Commit 0ccc4d92 authored by Valerie Karnes's avatar Valerie Karnes

Replace deprecated button

parent 24db8c9b
...@@ -6,7 +6,7 @@ import { ...@@ -6,7 +6,7 @@ import {
SIMPLE_BLOB_VIEWER, SIMPLE_BLOB_VIEWER,
SIMPLE_BLOB_VIEWER_TITLE, SIMPLE_BLOB_VIEWER_TITLE,
} from '~/blob/components/constants'; } from '~/blob/components/constants';
import { GlButtonGroup, GlDeprecatedButton } from '@gitlab/ui'; import { GlButtonGroup, GlButton } from '@gitlab/ui';
describe('Blob Header Viewer Switcher', () => { describe('Blob Header Viewer Switcher', () => {
let wrapper; let wrapper;
...@@ -35,7 +35,7 @@ describe('Blob Header Viewer Switcher', () => { ...@@ -35,7 +35,7 @@ describe('Blob Header Viewer Switcher', () => {
beforeEach(() => { beforeEach(() => {
createComponent(); createComponent();
btnGroup = wrapper.find(GlButtonGroup); btnGroup = wrapper.find(GlButtonGroup);
buttons = wrapper.findAll(GlDeprecatedButton); buttons = wrapper.findAll(GlButton);
}); });
it('renders gl-button-group component', () => { it('renders gl-button-group component', () => {
...@@ -57,7 +57,7 @@ describe('Blob Header Viewer Switcher', () => { ...@@ -57,7 +57,7 @@ describe('Blob Header Viewer Switcher', () => {
function factory(propsData = {}) { function factory(propsData = {}) {
createComponent(propsData); createComponent(propsData);
buttons = wrapper.findAll(GlDeprecatedButton); buttons = wrapper.findAll(GlButton);
simpleBtn = buttons.at(0); simpleBtn = buttons.at(0);
richBtn = buttons.at(1); richBtn = buttons.at(1);
......
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