Skip to content

Commit

Permalink
Updating StatementLexer test to follow Inertia convention
Browse files Browse the repository at this point in the history
  • Loading branch information
nexxai committed Dec 18, 2024
1 parent 26b214c commit 5652ad7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Feature/Lexers/StatementLexerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ public function it_returns_a_render_statement_with_data(): void
public function it_returns_an_inertia_statement_with_data(): void
{
$tokens = [
'inertia' => 'post.index with:foo,bar,baz',
'inertia' => 'Post/Index with:foo,bar,baz',
];

$actual = $this->subject->analyze($tokens);

$this->assertCount(1, $actual);
$this->assertInstanceOf(InertiaStatement::class, $actual[0]);

$this->assertEquals('post.index', $actual[0]->view());
$this->assertEquals('Post/Index', $actual[0]->view());
$this->assertEquals(['foo', 'bar', 'baz'], $actual[0]->data());
}

Expand Down

0 comments on commit 5652ad7

Please sign in to comment.