File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ public function boot(): void
2424 ], ['theme-switch-2-states-js ' , 'theme-switch-2-states-all ' ]);
2525
2626 $ this ->publishes ([
27- __DIR__ .'/../tests/js/theme-switch-two-states/theme- init.test.js ' => base_path ('tests/js/theme-switch-two-states/theme- init.test.js ' ),
28- __DIR__ .'/../tests/js/theme-switch-two-states/theme- switch.test.js ' => base_path ('tests/js/theme-switch-two-states/theme- switch.test.js ' ),
27+ __DIR__ .'/../tests/js/theme-switch-two-states/init-script .test.js ' => base_path ('tests/js/theme-switch-two-states/init-script .test.js ' ),
28+ __DIR__ .'/../tests/js/theme-switch-two-states/switch-script .test.js ' => base_path ('tests/js/theme-switch-two-states/switch-script .test.js ' ),
2929 ], ['theme-switch-2-states-js-tests ' , 'theme-switch-2-states-all ' ]);
3030 }
3131}
Original file line number Diff line number Diff line change 8686
8787 expect ($ jsInitFile )->not ->toBeNull ()
8888 ->and ($ jsSwitchFile )->not ->toBeNull ();
89-
89+
9090 // Verify that the source files actually exist physically
9191 expect (file_exists ((string ) $ jsInitFile ))->toBeTrue ('init-script.js source file must exist ' )
9292 ->and (file_exists ((string ) $ jsSwitchFile ))->toBeTrue ('switch-script.js source file must exist ' );
114114
115115 // Check specific test files are published
116116 $ sourceFiles = array_keys ($ expectedTestPublishes );
117- $ themeInitTest = collect ($ sourceFiles )->first (fn ($ file ) => str_contains ($ file , 'theme- init.test.js ' ));
118- $ themeSwitchTest = collect ($ sourceFiles )->first (fn ($ file ) => str_contains ($ file , 'theme- switch.test.js ' ));
117+ $ initScriptTest = collect ($ sourceFiles )->first (fn ($ file ) => str_contains ($ file , 'init-script .test.js ' ));
118+ $ switchScriptTest = collect ($ sourceFiles )->first (fn ($ file ) => str_contains ($ file , 'switch-script .test.js ' ));
119119
120- expect ($ themeInitTest )->not ->toBeNull ()
121- ->and ($ themeSwitchTest )->not ->toBeNull ();
120+ expect ($ initScriptTest )->not ->toBeNull ()
121+ ->and ($ switchScriptTest )->not ->toBeNull ();
122+
123+ // Verify that the source test files actually exist physically
124+ expect (file_exists ((string ) $ initScriptTest ))->toBeTrue ('init-script.test.js source file must exist ' )
125+ ->and (file_exists ((string ) $ switchScriptTest ))->toBeTrue ('switch-script.test.js source file must exist ' );
122126});
123127
124128test ('boot method sets up correct publish groups ' , function (): void {
You can’t perform that action at this time.
0 commit comments