@@ -591,9 +591,16 @@ describe('Sorted State Adapter', () => {
591
591
adapter . removeAll ( draft )
592
592
} )
593
593
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
+ ],
597
604
}
598
605
` )
599
606
} )
@@ -604,14 +611,19 @@ describe('Sorted State Adapter', () => {
604
611
} )
605
612
606
613
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": {
610
621
"id": "tgg",
611
622
"title": "The Great Gatsby",
612
623
},
613
624
},
614
- "ids": Array [
625
+ "ids": [
626
+ "af",
615
627
"tgg",
616
628
],
617
629
}
@@ -624,18 +636,18 @@ describe('Sorted State Adapter', () => {
624
636
} )
625
637
626
638
expect ( result ) . toMatchInlineSnapshot ( `
627
- Object {
628
- "entities": Object {
629
- "af": Object {
639
+ {
640
+ "entities": {
641
+ "af": {
630
642
"id": "af",
631
643
"title": "Animal Farm",
632
644
},
633
- "tgg": Object {
645
+ "tgg": {
634
646
"id": "tgg",
635
647
"title": "The Great Gatsby",
636
648
},
637
649
},
638
- "ids": Array [
650
+ "ids": [
639
651
"af",
640
652
"tgg",
641
653
],
@@ -679,14 +691,14 @@ describe('Sorted State Adapter', () => {
679
691
} )
680
692
681
693
expect ( result ) . toMatchInlineSnapshot ( `
682
- Object {
683
- "entities": Object {
684
- "tgg": Object {
694
+ {
695
+ "entities": {
696
+ "tgg": {
685
697
"id": "tgg",
686
698
"title": "A New Hope",
687
699
},
688
700
},
689
- "ids": Array [
701
+ "ids": [
690
702
"tgg",
691
703
],
692
704
}
@@ -714,26 +726,15 @@ describe('Sorted State Adapter', () => {
714
726
} )
715
727
716
728
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": {
724
732
"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",
731
734
},
732
735
},
733
- "ids": Array [
734
- "th",
736
+ "ids": [
735
737
"tgg",
736
- "aco",
737
738
],
738
739
}
739
740
` )
@@ -744,14 +745,14 @@ describe('Sorted State Adapter', () => {
744
745
adapter . upsertOne ( draft , TheGreatGatsby )
745
746
} )
746
747
expect ( result ) . toMatchInlineSnapshot ( `
747
- Object {
748
- "entities": Object {
749
- "tgg": Object {
748
+ {
749
+ "entities": {
750
+ "tgg": {
750
751
"id": "tgg",
751
- "title": "The Great Gatsby ",
752
+ "title": "A New Hope ",
752
753
},
753
754
},
754
- "ids": Array [
755
+ "ids": [
755
756
"tgg",
756
757
],
757
758
}
@@ -767,15 +768,20 @@ describe('Sorted State Adapter', () => {
767
768
} )
768
769
} )
769
770
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": {
773
778
"id": "tgg",
774
779
"title": "A New Hope",
775
780
},
776
781
},
777
- "ids": Array [
782
+ "ids": [
778
783
"tgg",
784
+ "af",
779
785
],
780
786
}
781
787
` )
@@ -793,20 +799,15 @@ describe('Sorted State Adapter', () => {
793
799
] )
794
800
} )
795
801
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": {
803
805
"id": "tgg",
804
- "title": "A New Hope ",
806
+ "title": "The Great Gatsby ",
805
807
},
806
808
},
807
- "ids": Array [
809
+ "ids": [
808
810
"tgg",
809
- "af",
810
811
],
811
812
}
812
813
` )
@@ -817,15 +818,15 @@ describe('Sorted State Adapter', () => {
817
818
adapter . setOne ( draft , TheGreatGatsby )
818
819
} )
819
820
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 ",
825
826
},
826
827
},
827
- "ids": Array [
828
- "tgg ",
828
+ "ids": [
829
+ "th ",
829
830
],
830
831
}
831
832
` )
@@ -840,14 +841,19 @@ describe('Sorted State Adapter', () => {
840
841
} )
841
842
} )
842
843
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": {
846
851
"id": "th",
847
852
"title": "Silmarillion",
848
853
},
849
854
},
850
- "ids": Array [
855
+ "ids": [
856
+ "af",
851
857
"th",
852
858
],
853
859
}
@@ -866,20 +872,15 @@ describe('Sorted State Adapter', () => {
866
872
] )
867
873
} )
868
874
expect ( result ) . toMatchInlineSnapshot ( `
869
- Object {
870
- "entities": Object {
871
- "af": Object {
875
+ {
876
+ "entities": {
877
+ "af": {
872
878
"id": "af",
873
879
"title": "Animal Farm",
874
880
},
875
- "th": Object {
876
- "id": "th",
877
- "title": "Silmarillion",
878
- },
879
881
},
880
- "ids": Array [
882
+ "ids": [
881
883
"af",
882
- "th",
883
884
],
884
885
}
885
886
` )
@@ -891,15 +892,15 @@ describe('Sorted State Adapter', () => {
891
892
adapter . removeOne ( draft , TheGreatGatsby . id )
892
893
} )
893
894
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 ",
899
900
},
900
901
},
901
- "ids": Array [
902
- "af ",
902
+ "ids": [
903
+ "aco ",
903
904
],
904
905
}
905
906
` )
0 commit comments