Skip to content

Commit

Permalink
Remove whenGet() from test_package.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinDelille committed Mar 5, 2024
1 parent 031299d commit 4a1d57b
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,5 @@
int main(void) {
MockNetworkAccess::Manager< QNetworkAccessManager > mnam;

mnam.whenGet( QUrl( "http://example.com/hello" ) )
.has( MockNetworkAccess::Predicates::HeaderMatching( QNetworkRequest::UserAgentHeader,
QRegularExpression( ".*MyNetworkClient/.*" ) ) )
.reply().withBody( QJsonDocument::fromJson( "{\"hello\":\"world\"}" ) );

return 0;
}

0 comments on commit 4a1d57b

Please sign in to comment.