@@ -79,11 +79,6 @@ describe('searchDsl/getSortParams', () => {
7979 ] ,
8080 } ) ;
8181 } ) ;
82- it ( 'appends tiebreaker when PIT is provided' , ( ) => {
83- expect ( getSortingParams ( MAPPINGS , 'saved' , 'title' , undefined , { id : 'abc' } ) . sort ) . toEqual (
84- expect . arrayContaining ( [ { _shard_doc : 'asc' } ] )
85- ) ;
86- } ) ;
8782 } ) ;
8883 describe ( 'sortField is simple root property with multiple types' , ( ) => {
8984 it ( 'returns correct params' , ( ) => {
@@ -98,11 +93,6 @@ describe('searchDsl/getSortParams', () => {
9893 ] ,
9994 } ) ;
10095 } ) ;
101- it ( 'appends tiebreaker when PIT is provided' , ( ) => {
102- expect (
103- getSortingParams ( MAPPINGS , [ 'saved' , 'pending' ] , 'type' , undefined , { id : 'abc' } ) . sort
104- ) . toEqual ( expect . arrayContaining ( [ { _shard_doc : 'asc' } ] ) ) ;
105- } ) ;
10696 } ) ;
10797 describe ( 'sortField is simple non-root property with multiple types' , ( ) => {
10898 it ( 'returns correct params' , ( ) => {
@@ -124,11 +114,6 @@ describe('searchDsl/getSortParams', () => {
124114 ] ,
125115 } ) ;
126116 } ) ;
127- it ( 'appends tiebreaker when PIT is provided' , ( ) => {
128- expect (
129- getSortingParams ( MAPPINGS , 'saved' , 'title.raw' , undefined , { id : 'abc' } ) . sort
130- ) . toEqual ( expect . arrayContaining ( [ { _shard_doc : 'asc' } ] ) ) ;
131- } ) ;
132117 } ) ;
133118 describe ( 'sortField is multi-field with single type as array' , ( ) => {
134119 it ( 'returns correct params' , ( ) => {
@@ -143,11 +128,6 @@ describe('searchDsl/getSortParams', () => {
143128 ] ,
144129 } ) ;
145130 } ) ;
146- it ( 'appends tiebreaker when PIT is provided' , ( ) => {
147- expect (
148- getSortingParams ( MAPPINGS , [ 'saved' ] , 'title.raw' , undefined , { id : 'abc' } ) . sort
149- ) . toEqual ( expect . arrayContaining ( [ { _shard_doc : 'asc' } ] ) ) ;
150- } ) ;
151131 } ) ;
152132 describe ( 'sortField is root multi-field with multiple types' , ( ) => {
153133 it ( 'returns correct params' , ( ) => {
@@ -162,12 +142,6 @@ describe('searchDsl/getSortParams', () => {
162142 ] ,
163143 } ) ;
164144 } ) ;
165- it ( 'appends tiebreaker when PIT is provided' , ( ) => {
166- expect (
167- getSortingParams ( MAPPINGS , [ 'saved' , 'pending' ] , 'type.raw' , undefined , { id : 'abc' } )
168- . sort
169- ) . toEqual ( expect . arrayContaining ( [ { _shard_doc : 'asc' } ] ) ) ;
170- } ) ;
171145 } ) ;
172146 describe ( 'sortField is not-root multi-field with multiple types' , ( ) => {
173147 it ( 'returns correct params' , ( ) => {
0 commit comments