Commit 3aec0499 authored by Rémy Coutable's avatar Rémy Coutable

Resolve conflict in spec/javascripts/environments/folder/environments_folder_view_spec.js

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 902f588f
...@@ -95,11 +95,7 @@ describe('Environments Folder View', () => { ...@@ -95,11 +95,7 @@ describe('Environments Folder View', () => {
it('should render parent folder name', (done) => { it('should render parent folder name', (done) => {
setTimeout(() => { setTimeout(() => {
expect( expect(
<<<<<<< HEAD
component.$el.querySelector('.js-folder-name').textContent.trim(),
=======
component.$el.querySelector('.js-folder-name').textContent, component.$el.querySelector('.js-folder-name').textContent,
>>>>>>> origin/master
).toContain('Environments / review'); ).toContain('Environments / review');
done(); done();
}, 0); }, 0);
...@@ -111,30 +107,10 @@ describe('Environments Folder View', () => { ...@@ -111,30 +107,10 @@ describe('Environments Folder View', () => {
expect( expect(
component.$el.querySelectorAll('.gl-pagination'), component.$el.querySelectorAll('.gl-pagination'),
).not.toBeNull(); ).not.toBeNull();
<<<<<<< HEAD
done(); done();
}, 0); }, 0);
}); });
it('should make an API request when changing page', (done) => {
spyOn(component, 'updateContent');
setTimeout(() => {
component.$el.querySelector('.gl-pagination .js-last-button a').click();
expect(component.updateContent).toHaveBeenCalledWith({ scope: component.scope, page: '10' });
=======
>>>>>>> origin/master
done();
}, 0);
});
<<<<<<< HEAD
it('should make an API request when using tabs', (done) => {
setTimeout(() => {
spyOn(component, 'updateContent');
component.$el.querySelector('.js-environments-tab-stopped').click();
=======
it('should make an API request when changing page', (done) => { it('should make an API request when changing page', (done) => {
spyOn(component, 'updateContent'); spyOn(component, 'updateContent');
setTimeout(() => { setTimeout(() => {
...@@ -148,7 +124,6 @@ describe('Environments Folder View', () => { ...@@ -148,7 +124,6 @@ describe('Environments Folder View', () => {
setTimeout(() => { setTimeout(() => {
spyOn(component, 'updateContent'); spyOn(component, 'updateContent');
component.$el.querySelector('.js-environments-tab-stopped').click(); component.$el.querySelector('.js-environments-tab-stopped').click();
>>>>>>> origin/master
expect(component.updateContent).toHaveBeenCalledWith({ scope: 'stopped', page: '1' }); expect(component.updateContent).toHaveBeenCalledWith({ scope: 'stopped', page: '1' });
done(); done();
}); });
......
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