@@ -636,9 +636,9 @@ describe("List entries component", () => {
636636 } ) ;
637637
638638 describe ( "events" , ( ) => {
639- it ( "triggers a correct title click action in local files " , ( ) => {
639+ it ( "triggers a correct title click action in pubmed " , ( ) => {
640640 const EXPECTED_PAYLOAD = [ zoomIn ( ) . type ] ;
641- const storeObject = setup ( { show : true } , { service : null } ) ;
641+ const storeObject = setup ( { show : true } , { service : "pubmed" } ) ;
642642 const store = mockStore ( storeObject ) ;
643643
644644 act ( ( ) => {
@@ -662,84 +662,6 @@ describe("List entries component", () => {
662662 expect ( actions . map ( ( a ) => a . type ) ) . toEqual ( EXPECTED_PAYLOAD ) ;
663663 } ) ;
664664
665- it ( "triggers a correct area click action in local files" , ( ) => {
666- const EXPECTED_PAYLOAD = [ zoomIn ( ) . type ] ;
667- const storeObject = setup ( { show : true } , { service : null } ) ;
668- const store = mockStore ( storeObject ) ;
669-
670- act ( ( ) => {
671- render (
672- < Provider store = { store } >
673- < LocalizationProvider localization = { localization } >
674- < List />
675- </ LocalizationProvider >
676- </ Provider > ,
677- container
678- ) ;
679- } ) ;
680-
681- const area = container . querySelector ( "#list_area" ) ;
682- act ( ( ) => {
683- ReactTestUtils . Simulate . click ( area ) ;
684- } ) ;
685-
686- const actions = store . getActions ( ) ;
687-
688- expect ( actions . map ( ( a ) => a . type ) ) . toEqual ( EXPECTED_PAYLOAD ) ;
689- } ) ;
690-
691- it ( "triggers a correct area mouseover action in local files" , ( ) => {
692- const EXPECTED_PAYLOAD = highlightArea ( initialTestData [ 0 ] ) ;
693- const storeObject = setup ( { show : true } , { service : null } ) ;
694- const store = mockStore ( storeObject ) ;
695-
696- act ( ( ) => {
697- render (
698- < Provider store = { store } >
699- < LocalizationProvider localization = { localization } >
700- < List />
701- </ LocalizationProvider >
702- </ Provider > ,
703- container
704- ) ;
705- } ) ;
706-
707- const area = container . querySelector ( "#list_area" ) ;
708- act ( ( ) => {
709- ReactTestUtils . Simulate . mouseOver ( area ) ;
710- } ) ;
711-
712- const actions = store . getActions ( ) ;
713-
714- expect ( actions ) . toEqual ( [ EXPECTED_PAYLOAD ] ) ;
715- } ) ;
716-
717- it ( "triggers a correct area mouseout action in local files" , ( ) => {
718- const EXPECTED_PAYLOAD = highlightArea ( null ) ;
719- const storeObject = setup ( { show : true } , { service : null } ) ;
720- const store = mockStore ( storeObject ) ;
721-
722- act ( ( ) => {
723- render (
724- < Provider store = { store } >
725- < LocalizationProvider localization = { localization } >
726- < List />
727- </ LocalizationProvider >
728- </ Provider > ,
729- container
730- ) ;
731- } ) ;
732-
733- const area = container . querySelector ( "#list_area" ) ;
734- act ( ( ) => {
735- ReactTestUtils . Simulate . mouseOut ( area ) ;
736- } ) ;
737-
738- const actions = store . getActions ( ) ;
739-
740- expect ( actions ) . toEqual ( [ EXPECTED_PAYLOAD ] ) ;
741- } ) ;
742-
743665 it ( "renders with data without title, authors and abstract" , ( ) => {
744666 const storeObject = setup (
745667 {
0 commit comments