Skip to content
This repository was archived by the owner on Jul 16, 2020. It is now read-only.

Commit 6cb9b20

Browse files
committed
test: add another failing corner case
1 parent 5367b69 commit 6cb9b20

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/GenerateTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ function testShouldNotTouchHtmlTags()
125125
'en' => [
126126
'help' => [
127127
'yes' => 'see <a href="mailto:mail@com">',
128+
'no' => 'see <a href=":link">',
128129
]
129130
]
130131
];
@@ -135,7 +136,8 @@ function testShouldNotTouchHtmlTags()
135136
'export default {' . PHP_EOL
136137
. ' "en": {' . PHP_EOL
137138
. ' "help": {' . PHP_EOL
138-
. ' "yes": "see <a href=\"mailto:mail@com\">"' . PHP_EOL
139+
. ' "yes": "see <a href=\"mailto:mail@com\">",' . PHP_EOL
140+
. ' "no": "see <a href=\"{link}\">"' . PHP_EOL
139141
. ' }' . PHP_EOL
140142
. ' }' . PHP_EOL
141143
. '}' . PHP_EOL,

0 commit comments

Comments
 (0)