@@ -30,11 +30,11 @@ describe('Testing api', () => {
3030 } )
3131
3232 test ( 'should have a data-opts object' , ( ) => {
33- expect ( typeof sortable . __testing . _data ( ul , 'opts' ) ) . toBe ( 'object' )
33+ expect ( typeof sortable . __testing . data ( ul , 'opts' ) ) . toBe ( 'object' )
3434 } )
3535
3636 test ( 'should have correct options set on options object' , ( ) => {
37- const opts = sortable . __testing . _data ( ul , 'opts' )
37+ const opts = sortable . __testing . data ( ul , 'opts' )
3838 expect ( opts . items ) . toEqual ( 'li' )
3939 expect ( opts . placeholderClass ) . toEqual ( 'test-placeholder' )
4040 expect ( opts . draggingClass ) . toEqual ( 'test-dragging' )
@@ -45,7 +45,7 @@ describe('Testing api', () => {
4545 } )
4646
4747 test ( 'should have a data-items object' , ( ) => {
48- expect ( typeof sortable . __testing . _data ( ul , 'items' ) ) . toBe ( 'string' )
48+ expect ( typeof sortable . __testing . data ( ul , 'items' ) ) . toBe ( 'string' )
4949 } )
5050
5151 test ( 'should have aria-grabbed attributes' , ( ) => {
@@ -83,15 +83,15 @@ describe('Testing api', () => {
8383 } )
8484
8585 test ( 'should not have a data-opts object' , ( ) => {
86- expect ( typeof sortable . __testing . _data ( ul , 'opts' ) ) . toBe ( 'undefined' )
86+ expect ( typeof sortable . __testing . data ( ul , 'opts' ) ) . toBe ( 'undefined' )
8787 } )
8888
8989 test ( 'should not have a aria-dropeffect attribute' , ( ) => {
9090 expect ( ul . getAttribute ( 'aria-dropeffect' ) ) . toBeNull ( )
9191 } )
9292
9393 test ( 'should not have a data-items object' , ( ) => {
94- expect ( sortable . __testing . _data ( ul , 'items' ) ) . not . toBeDefined ( )
94+ expect ( sortable . __testing . data ( ul , 'items' ) ) . not . toBeDefined ( )
9595 } )
9696
9797 test ( 'should not have an aria-grabbed attribute' , ( ) => {
@@ -117,13 +117,13 @@ describe('Testing api', () => {
117117 } )
118118
119119 test ( 'should keep the options of the sortable' , ( ) => {
120- const opts = sortable . __testing . _data ( ul , 'opts' )
120+ const opts = sortable . __testing . data ( ul , 'opts' )
121121 expect ( opts . items ) . toEqual ( 'li:not(.disabled)' )
122122 expect ( opts . placeholderClass ) . toEqual ( 'test-placeholder' )
123123 } )
124124
125125 test ( 'should keep items attribute of the sortable' , ( ) => {
126- const items = sortable . __testing . _data ( ul , 'items' )
126+ const items = sortable . __testing . data ( ul , 'items' )
127127 expect ( items ) . toEqual ( 'li:not(.disabled)' )
128128 } )
129129 } )
0 commit comments