diff options
Diffstat (limited to 'spec/frontend/environments/environment_pin_spec.js')
-rw-r--r-- | spec/frontend/environments/environment_pin_spec.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/frontend/environments/environment_pin_spec.js b/spec/frontend/environments/environment_pin_spec.js index 486f6db7366..f48091adb44 100644 --- a/spec/frontend/environments/environment_pin_spec.js +++ b/spec/frontend/environments/environment_pin_spec.js @@ -1,6 +1,5 @@ import { shallowMount } from '@vue/test-utils'; -import { GlDeprecatedButton } from '@gitlab/ui'; -import Icon from '~/vue_shared/components/icon.vue'; +import { GlButton, GlIcon } from '@gitlab/ui'; import eventHub from '~/environments/event_hub'; import PinComponent from '~/environments/components/environment_pin.vue'; @@ -32,12 +31,12 @@ describe('Pin Component', () => { }); it('should render the component with thumbtack icon', () => { - expect(wrapper.find(Icon).props('name')).toBe('thumbtack'); + expect(wrapper.find(GlIcon).props('name')).toBe('thumbtack'); }); it('should emit onPinClick when clicked', () => { const eventHubSpy = jest.spyOn(eventHub, '$emit'); - const button = wrapper.find(GlDeprecatedButton); + const button = wrapper.find(GlButton); button.vm.$emit('click'); |