Skip to content

Commit

Permalink
test: 🧪 add simple test
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesOberreiter committed Sep 29, 2023
1 parent 19c4c0f commit 1c133f0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/integration/v2/observations.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,13 @@ describe( "Observations", ( ) => {
.expect( "Content-Type", /json/ )
.expect( 200, done );
} );

it( "should error with bad request as result window is too large for elastic search", function ( done ) {
request( this.app )
.get( "/v2/observations?page=350" )
.expect( "Content-Type", /json/ )
.expect( 400, done );
} );
} );

describe( "create", ( ) => {
Expand Down

0 comments on commit 1c133f0

Please sign in to comment.