Updated unit test
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-01-19 14:27:58 +01:00
parent dfbf114161
commit 9935f7f4ee
1 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ describe('Travel Component vnTravelExtraCommunity', () => {
describe('findDroppable()', () => {
it('should find the droppable element', () => {
const droppable = document.createElement('vn-table');
const droppable = document.createElement('vn-tbody');
droppable.setAttribute('vn-droppable', true);
const $event = new Event('drop');
@ -89,13 +89,13 @@ describe('Travel Component vnTravelExtraCommunity', () => {
describe('onDrop()', () => {
it('should make an HTTP patch query', () => {
const droppable = document.createElement('vn-table');
const droppable = document.createElement('vn-tbody');
droppable.setAttribute('vn-droppable', true);
droppable.setAttribute('id', 1);
jest.spyOn(controller, 'findDroppable').mockReturnValue(droppable);
const oldDroppable = document.createElement('vn-table');
const oldDroppable = document.createElement('vn-tbody');
oldDroppable.setAttribute('vn-droppable', true);
const entry = document.createElement('div');
oldDroppable.appendChild(entry);