From 6452a700adc3090c7817b8e0f23b3bdbdde8586c Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Thu, 14 Mar 2019 17:10:58 +0000 Subject: [PATCH] Removes EE differences for environment_item_spec --- .../environments/environment_item_spec.js | 20 +++++++------------ 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/spec/javascripts/environments/environment_item_spec.js b/spec/javascripts/environments/environment_item_spec.js index f665256a20b5ef..8b8779945151ed 100644 --- a/spec/javascripts/environments/environment_item_spec.js +++ b/spec/javascripts/environments/environment_item_spec.js @@ -27,19 +27,16 @@ describe('Environment item', () => { propsData: { model: mockItem, canReadEnvironment: true, - toggleDeployBoard: () => {}, - store: {}, - service: {}, }, }).$mount(); }); - it('Should render folder icon and name', () => { + it('should render folder icon and name', () => { expect(component.$el.querySelector('.folder-name').textContent).toContain(mockItem.name); expect(component.$el.querySelector('.folder-icon')).toBeDefined(); }); - it('Should render the number of children in a badge', () => { + it('should render the number of children in a badge', () => { expect(component.$el.querySelector('.folder-name .badge').textContent).toContain( mockItem.size, ); @@ -121,9 +118,6 @@ describe('Environment item', () => { propsData: { model: environment, canReadEnvironment: true, - toggleDeployBoard: () => {}, - store: {}, - service: {}, }, }).$mount(); }); @@ -163,13 +157,13 @@ describe('Environment item', () => { }); describe('With build url', () => { - it('Should link to build url provided', () => { + it('should link to build url provided', () => { expect(component.$el.querySelector('.build-link').getAttribute('href')).toEqual( environment.last_deployment.deployable.build_path, ); }); - it('Should render deployable name and id', () => { + it('should render deployable name and id', () => { expect(component.$el.querySelector('.build-link').getAttribute('href')).toEqual( environment.last_deployment.deployable.build_path, ); @@ -184,7 +178,7 @@ describe('Environment item', () => { }); describe('With manual actions', () => { - it('Should render actions component', () => { + it('should render actions component', () => { expect(component.$el.querySelector('.js-manual-actions-container')).toBeDefined(); }); }); @@ -196,13 +190,13 @@ describe('Environment item', () => { }); describe('With stop action', () => { - it('Should render stop action component', () => { + it('should render stop action component', () => { expect(component.$el.querySelector('.js-stop-component-container')).toBeDefined(); }); }); describe('With retry action', () => { - it('Should render rollback component', () => { + it('should render rollback component', () => { expect(component.$el.querySelector('.js-rollback-component-container')).toBeDefined(); }); }); -- GitLab