@@ -39,30 +39,36 @@ public function testSingleFileComponent(): void {
3939 $ this ->assertSame ( '<div></div> ' , $ result );
4040 }
4141
42- public function testTemplateHasOnClickHandler_RemoveHandlerFormOutput () {
42+ public function testTemplateHasOnClickHandler_RemoveHandlerFromOutput () {
4343 $ result = $ this ->createAndRender ( '<div v-on:click="doStuff"></div> ' , [] );
4444
4545 $ this ->assertSame ( '<div></div> ' , $ result );
4646 }
4747
48- public function testTemplateHasOnClickHandlerAndPreventDefault_RemoveHandlerFormOutput () {
48+ public function testTemplateHasOnClickHandlerAndPreventDefault_RemoveHandlerFromOutput () {
4949 $ result = $ this ->createAndRender ( '<div v-on:click.prevent="doStuff"></div> ' , [] );
5050
5151 $ this ->assertSame ( '<div></div> ' , $ result );
5252 }
5353
54- public function testTemplateHasOnClickHandlerInSomeChildNode_RemoveHandlerFormOutput () {
54+ public function testTemplateHasOnClickHandlerInSomeChildNode_RemoveHandlerFromOutput () {
5555 $ result = $ this ->createAndRender ( '<p><a v-on:click="doStuff"></a></p> ' , [] );
5656
5757 $ this ->assertSame ( '<p><a></a></p> ' , $ result );
5858 }
5959
60- public function testTemplateHasOnClickHandlerInGrandChildNode_RemoveHandlerFormOutput () {
60+ public function testTemplateHasOnClickHandlerInGrandChildNode_RemoveHandlerFromOutput () {
6161 $ result = $ this ->createAndRender ( '<p><b><a v-on:click="doStuff"></a></b></p> ' , [] );
6262
6363 $ this ->assertSame ( '<p><b><a></a></b></p> ' , $ result );
6464 }
6565
66+ public function testTemplateHasOnClickHandlerWithShorthand_RemoveHandlerFromOutput (): void {
67+ $ result = $ this ->createAndRender ( '<p @click="x"></p> ' , [] );
68+
69+ $ this ->assertSame ( '<p></p> ' , $ result );
70+ }
71+
6672 public function testTemplateHasMultipleEventHandlers_RemoveAll (): void {
6773 $ result = $ this ->createAndRender ( '<p v-on:click="x" v-on:keypress="y"></p> ' , [] );
6874
0 commit comments