Skip to content

Commit ff81a2b

Browse files
committed
Pint
1 parent 9c603e9 commit ff81a2b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

config/stimulus-laravel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use HotwiredLaravel\StimulusLaravel\Features;
44

55
return [
6-
'controllers_path' => resource_path(join(DIRECTORY_SEPARATOR, ['js', 'controllers'])),
6+
'controllers_path' => resource_path(implode(DIRECTORY_SEPARATOR, ['js', 'controllers'])),
77
'features' => [
88
Features::directives(),
99
],

tests/ManifestTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ class ManifestTest extends TestCase
99
/** @test */
1010
public function generates_controllers_imports_given_a_path()
1111
{
12-
$manifest = (new Manifest)->generateFrom(join(DIRECTORY_SEPARATOR, [
12+
$manifest = (new Manifest)->generateFrom(implode(DIRECTORY_SEPARATOR, [
1313
__DIR__,
1414
'stubs',
1515
'controllers',
1616
]).DIRECTORY_SEPARATOR)->join(PHP_EOL);
1717

1818
$this->assertStringContainsString(
19-
<<<JS
19+
<<<'JS'
2020
2121
import HelloController from './hello_controller'
2222
application.register('hello', HelloController)
@@ -25,7 +25,7 @@ public function generates_controllers_imports_given_a_path()
2525
);
2626

2727
$this->assertStringContainsString(
28-
<<<JS
28+
<<<'JS'
2929
3030
import Nested__DeepController from './nested/deep_controller'
3131
application.register('nested--deep', Nested__DeepController)
@@ -34,7 +34,7 @@ public function generates_controllers_imports_given_a_path()
3434
);
3535

3636
$this->assertStringContainsString(
37-
<<<JS
37+
<<<'JS'
3838
3939
import CoffeeController from './coffee_controller'
4040
application.register('coffee', CoffeeController)
@@ -43,7 +43,7 @@ public function generates_controllers_imports_given_a_path()
4343
);
4444

4545
$this->assertStringContainsString(
46-
<<<JS
46+
<<<'JS'
4747
4848
import TypeScriptController from './type_script_controller'
4949
application.register('type-script', TypeScriptController)
@@ -52,7 +52,7 @@ public function generates_controllers_imports_given_a_path()
5252
);
5353

5454
$this->assertStringNotContainsString(
55-
<<<JS
55+
<<<'JS'
5656
5757
import Index from './index'
5858
application.register('index', Index)

0 commit comments

Comments
 (0)