Skip to content

Commit

Permalink
Corregir pruebas de rup_select
Browse files Browse the repository at this point in the history
Los cambios efectuados en el método clear habían hecho que las pruebas no funcionasen correctamente porque el componente funcionaba de forma distinta.
  • Loading branch information
xaabi6 committed May 17, 2024
1 parent 7f00e4d commit 1f1672f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/select/rup.select.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ describe('Test Select Remoto> ', () => {
.toBe($selectAbueloRemoto.data('settings').placeholder);
});
it('El método getRupValue debe devolver el valor establecido', () => {
expect($selectAbueloRemoto.rup_select('getRupValue')).toEqual('');
expect($selectAbueloRemoto.rup_select('getRupValue')).toEqual('-1');
});
});
describe('select padre > ', () => {
Expand All @@ -944,7 +944,7 @@ describe('Test Select Remoto> ', () => {
.toBe($selectPadreRemoto.data('settings').placeholder);
});
it('El método getRupValue debe devolver el valor establecido', () => {
expect($selectPadreRemoto.rup_select('getRupValue')).toEqual('');
expect($selectPadreRemoto.rup_select('getRupValue')).toEqual('-1');
});
it('El select hijo debe deshabilitarse:', () => {
expect($selectHijoRemoto.attr('disabled')).toBe('disabled');
Expand All @@ -958,7 +958,7 @@ describe('Test Select Remoto> ', () => {
expect($('#select2-selectHijoRemoto-container').text()).toBe('[Seleccionar]');
});
it('El método getRupValue debe devolver el valor establecido', () => {
expect($selectHijoRemoto.rup_select('getRupValue')).toEqual('');
expect($selectHijoRemoto.rup_select('getRupValue')).toEqual('-1');
});
});

Expand Down

0 comments on commit 1f1672f

Please sign in to comment.