@@ -791,10 +791,8 @@ describe("Replicate client", () => {
791
791
} ,
792
792
configuration : {
793
793
hardware : "gpu-t4" ,
794
- scaling : {
795
- min_instances : 1 ,
796
- max_instances : 5 ,
797
- } ,
794
+ min_instances : 1 ,
795
+ max_instances : 5 ,
798
796
} ,
799
797
} ,
800
798
} ) ;
@@ -832,10 +830,8 @@ describe("Replicate client", () => {
832
830
} ,
833
831
configuration : {
834
832
hardware : "gpu-t4" ,
835
- scaling : {
836
- min_instances : 1 ,
837
- max_instances : 5 ,
838
- } ,
833
+ min_instances : 1 ,
834
+ max_instances : 5 ,
839
835
} ,
840
836
} ,
841
837
} ) ;
@@ -878,10 +874,8 @@ describe("Replicate client", () => {
878
874
} ,
879
875
configuration : {
880
876
hardware : "gpu-a40-large" ,
881
- scaling : {
882
- min_instances : 3 ,
883
- max_instances : 10 ,
884
- } ,
877
+ min_instances : 3 ,
878
+ max_instances : 10 ,
885
879
} ,
886
880
} ,
887
881
} ) ;
@@ -905,12 +899,8 @@ describe("Replicate client", () => {
905
899
expect ( deployment . current_release . configuration . hardware ) . toBe (
906
900
"gpu-a40-large"
907
901
) ;
908
- expect (
909
- deployment . current_release . configuration . scaling ?. min_instances
910
- ) . toBe ( 3 ) ;
911
- expect (
912
- deployment . current_release . configuration . scaling ?. max_instances
913
- ) . toBe ( 10 ) ;
902
+ expect ( deployment . current_release . configuration . min_instances ) . toBe ( 3 ) ;
903
+ expect ( deployment . current_release . configuration . max_instances ) . toBe ( 10 ) ;
914
904
} ) ;
915
905
// Add more tests for error handling, edge cases, etc.
916
906
} ) ;
@@ -935,7 +925,7 @@ describe("Replicate client", () => {
935
925
} ) ;
936
926
937
927
const deployments = await client . deployments . list ( ) ;
938
- expect ( deployments . results . length ) . toBe ( 1 )
928
+ expect ( deployments . results . length ) . toBe ( 1 ) ;
939
929
} ) ;
940
930
// Add more tests for pagination, error handling, edge cases, etc.
941
931
} ) ;
0 commit comments