@@ -591,9 +591,16 @@ describe('Sorted State Adapter', () => {
591591 adapter . removeAll ( draft )
592592 } )
593593 expect ( result ) . toMatchInlineSnapshot ( `
594- Object {
595- "entities": Object {},
596- "ids": Array [],
594+ {
595+ "entities": {
596+ "tgg": {
597+ "id": "tgg",
598+ "title": "The Great Gatsby",
599+ },
600+ },
601+ "ids": [
602+ "tgg",
603+ ],
597604 }
598605 ` )
599606 } )
@@ -604,14 +611,19 @@ describe('Sorted State Adapter', () => {
604611 } )
605612
606613 expect ( result ) . toMatchInlineSnapshot ( `
607- Object {
608- "entities": Object {
609- "tgg": Object {
614+ {
615+ "entities": {
616+ "af": {
617+ "id": "af",
618+ "title": "Animal Farm",
619+ },
620+ "tgg": {
610621 "id": "tgg",
611622 "title": "The Great Gatsby",
612623 },
613624 },
614- "ids": Array [
625+ "ids": [
626+ "af",
615627 "tgg",
616628 ],
617629 }
@@ -624,18 +636,18 @@ describe('Sorted State Adapter', () => {
624636 } )
625637
626638 expect ( result ) . toMatchInlineSnapshot ( `
627- Object {
628- "entities": Object {
629- "af": Object {
639+ {
640+ "entities": {
641+ "af": {
630642 "id": "af",
631643 "title": "Animal Farm",
632644 },
633- "tgg": Object {
645+ "tgg": {
634646 "id": "tgg",
635647 "title": "The Great Gatsby",
636648 },
637649 },
638- "ids": Array [
650+ "ids": [
639651 "af",
640652 "tgg",
641653 ],
@@ -679,14 +691,14 @@ describe('Sorted State Adapter', () => {
679691 } )
680692
681693 expect ( result ) . toMatchInlineSnapshot ( `
682- Object {
683- "entities": Object {
684- "tgg": Object {
694+ {
695+ "entities": {
696+ "tgg": {
685697 "id": "tgg",
686698 "title": "A New Hope",
687699 },
688700 },
689- "ids": Array [
701+ "ids": [
690702 "tgg",
691703 ],
692704 }
@@ -714,26 +726,15 @@ describe('Sorted State Adapter', () => {
714726 } )
715727
716728 expect ( result ) . toMatchInlineSnapshot ( `
717- Object {
718- "entities": Object {
719- "aco": Object {
720- "id": "aco",
721- "title": "Third Change",
722- },
723- "tgg": Object {
729+ {
730+ "entities": {
731+ "tgg": {
724732 "id": "tgg",
725- "title": "Second Change",
726- },
727- "th": Object {
728- "author": "Fourth Change",
729- "id": "th",
730- "title": "First Change",
733+ "title": "The Great Gatsby",
731734 },
732735 },
733- "ids": Array [
734- "th",
736+ "ids": [
735737 "tgg",
736- "aco",
737738 ],
738739 }
739740 ` )
@@ -744,14 +745,14 @@ describe('Sorted State Adapter', () => {
744745 adapter . upsertOne ( draft , TheGreatGatsby )
745746 } )
746747 expect ( result ) . toMatchInlineSnapshot ( `
747- Object {
748- "entities": Object {
749- "tgg": Object {
748+ {
749+ "entities": {
750+ "tgg": {
750751 "id": "tgg",
751- "title": "The Great Gatsby ",
752+ "title": "A New Hope ",
752753 },
753754 },
754- "ids": Array [
755+ "ids": [
755756 "tgg",
756757 ],
757758 }
@@ -767,15 +768,20 @@ describe('Sorted State Adapter', () => {
767768 } )
768769 } )
769770 expect ( result ) . toMatchInlineSnapshot ( `
770- Object {
771- "entities": Object {
772- "tgg": Object {
771+ {
772+ "entities": {
773+ "af": {
774+ "id": "af",
775+ "title": "Animal Farm",
776+ },
777+ "tgg": {
773778 "id": "tgg",
774779 "title": "A New Hope",
775780 },
776781 },
777- "ids": Array [
782+ "ids": [
778783 "tgg",
784+ "af",
779785 ],
780786 }
781787 ` )
@@ -793,20 +799,15 @@ describe('Sorted State Adapter', () => {
793799 ] )
794800 } )
795801 expect ( result ) . toMatchInlineSnapshot ( `
796- Object {
797- "entities": Object {
798- "af": Object {
799- "id": "af",
800- "title": "Animal Farm",
801- },
802- "tgg": Object {
802+ {
803+ "entities": {
804+ "tgg": {
803805 "id": "tgg",
804- "title": "A New Hope ",
806+ "title": "The Great Gatsby ",
805807 },
806808 },
807- "ids": Array [
809+ "ids": [
808810 "tgg",
809- "af",
810811 ],
811812 }
812813 ` )
@@ -817,15 +818,15 @@ describe('Sorted State Adapter', () => {
817818 adapter . setOne ( draft , TheGreatGatsby )
818819 } )
819820 expect ( result ) . toMatchInlineSnapshot ( `
820- Object {
821- "entities": Object {
822- "tgg": Object {
823- "id": "tgg ",
824- "title": "The Great Gatsby ",
821+ {
822+ "entities": {
823+ "th": {
824+ "id": "th ",
825+ "title": "Silmarillion ",
825826 },
826827 },
827- "ids": Array [
828- "tgg ",
828+ "ids": [
829+ "th ",
829830 ],
830831 }
831832 ` )
@@ -840,14 +841,19 @@ describe('Sorted State Adapter', () => {
840841 } )
841842 } )
842843 expect ( result ) . toMatchInlineSnapshot ( `
843- Object {
844- "entities": Object {
845- "th": Object {
844+ {
845+ "entities": {
846+ "af": {
847+ "id": "af",
848+ "title": "Animal Farm",
849+ },
850+ "th": {
846851 "id": "th",
847852 "title": "Silmarillion",
848853 },
849854 },
850- "ids": Array [
855+ "ids": [
856+ "af",
851857 "th",
852858 ],
853859 }
@@ -866,20 +872,15 @@ describe('Sorted State Adapter', () => {
866872 ] )
867873 } )
868874 expect ( result ) . toMatchInlineSnapshot ( `
869- Object {
870- "entities": Object {
871- "af": Object {
875+ {
876+ "entities": {
877+ "af": {
872878 "id": "af",
873879 "title": "Animal Farm",
874880 },
875- "th": Object {
876- "id": "th",
877- "title": "Silmarillion",
878- },
879881 },
880- "ids": Array [
882+ "ids": [
881883 "af",
882- "th",
883884 ],
884885 }
885886 ` )
@@ -891,15 +892,15 @@ describe('Sorted State Adapter', () => {
891892 adapter . removeOne ( draft , TheGreatGatsby . id )
892893 } )
893894 expect ( result ) . toMatchInlineSnapshot ( `
894- Object {
895- "entities": Object {
896- "af": Object {
897- "id": "af ",
898- "title": "Animal Farm ",
895+ {
896+ "entities": {
897+ "aco": {
898+ "id": "aco ",
899+ "title": "A Clockwork Orange ",
899900 },
900901 },
901- "ids": Array [
902- "af ",
902+ "ids": [
903+ "aco ",
903904 ],
904905 }
905906 ` )
0 commit comments