Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasss93 committed Sep 23, 2023
1 parent b8fbfb1 commit fe8e850
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Feature/ValidateWebAppDataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
/** @var FakeNutgram $bot */
$this->bot = app(Nutgram::class);
$this->request = new Request();
$this->app->bind('request', fn () => $this->request);
});

it('validates web app data', function () {
Expand All @@ -25,7 +26,7 @@
$middleware = new ValidateWebAppData($this->bot);
$middleware->handle($this->request, function ($request) {
expect($request->get('webAppData'))->toBeInstanceOf(WebAppData::class);
expect(webAppData());
expect(webAppData())->toBeInstanceOf(WebAppData::class);
});
});

Expand Down

0 comments on commit fe8e850

Please sign in to comment.