@@ -54,48 +54,39 @@ describe34("Manipulating views", function() {
5454 const properties = await view . setProperties ( {
5555 consolidationPolicy : {
5656 type : "count" ,
57- segmentThreshold : 123
57+ threshold : 123
5858 }
5959 } ) ;
6060 expect ( properties ) . to . have . property ( "name" , view . name ) ;
6161 expect ( properties ) . to . have . property ( "links" ) ;
6262 expect ( properties ) . to . have . property ( "consolidationPolicy" ) ;
6363 expect ( properties . consolidationPolicy ) . to . have . property ( "type" , "count" ) ;
64- expect ( properties . consolidationPolicy ) . to . have . property (
65- "segmentThreshold" ,
66- 123
67- ) ;
64+ expect ( properties . consolidationPolicy ) . to . have . property ( "threshold" , 123 ) ;
6865 } ) ;
6966 } ) ;
7067 describe ( "view.replaceProperties" , ( ) => {
7168 it ( "should change properties" , async ( ) => {
7269 const initial = await view . properties ( ) ;
73- expect ( initial . consolidationPolicy ) . to . have . property ( "segmentThreshold " ) ;
70+ expect ( initial . consolidationPolicy ) . to . have . property ( "threshold " ) ;
7471 const oldProps = await view . replaceProperties ( {
7572 consolidationPolicy : {
7673 type : "bytes" ,
77- segmentThreshold : 123
74+ threshold : 123
7875 }
7976 } ) ;
80- expect ( oldProps . consolidationPolicy ) . to . have . property (
81- "segmentThreshold" ,
82- 123
83- ) ;
77+ expect ( oldProps . consolidationPolicy ) . to . have . property ( "threshold" , 123 ) ;
8478 expect ( oldProps . consolidationPolicy ) . to . have . property ( "type" , "bytes" ) ;
8579 const properties = await view . replaceProperties ( {
8680 consolidationPolicy : {
8781 type : "fill" ,
88- segmentThreshold : 456
82+ threshold : 456
8983 }
9084 } ) ;
9185 expect ( properties ) . to . have . property ( "name" , view . name ) ;
9286 expect ( properties ) . to . have . property ( "links" ) ;
9387 expect ( properties ) . to . have . property ( "consolidationPolicy" ) ;
9488 expect ( properties . consolidationPolicy ) . to . have . property ( "type" , "fill" ) ;
95- expect ( properties . consolidationPolicy ) . to . have . property (
96- "segmentThreshold" ,
97- 456
98- ) ;
89+ expect ( properties . consolidationPolicy ) . to . have . property ( "threshold" , 456 ) ;
9990 } ) ;
10091 } ) ;
10192 describe ( "view.rename" , ( ) => {
0 commit comments