File tree 2 files changed +20
-0
lines changed
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 26
26
HTML);
27
27
});
28
28
29
+ it ('compiles quotes in Blade TODO comments ' , function () {
30
+ $ html = Blade::render (<<< 'BLADE'
31
+ {{-- |TODO: Foo "Bar" baz --}}
32
+ BLADE);
33
+
34
+ expect ($ html )
35
+ ->not ->toContain ('{{-- TODO ' )
36
+ ->toContain ('<span class="magic-todo-mark" data-todo="Foo &quot;Bar&quot; baz"> ' );
37
+ });
38
+
29
39
it ('compiles empty Blade TODO comments ' , function () {
30
40
$ html = Blade::render (<<< 'BLADE'
31
41
{{-- |TODO: --}}
Original file line number Diff line number Diff line change 26
26
HTML);
27
27
});
28
28
29
+ it ('compiles quotes in Blade HTML comments ' , function () {
30
+ $ html = Blade::render (<<< 'BLADE'
31
+ <!-- |TODO: Foo "Bar" baz -->
32
+ BLADE);
33
+
34
+ expect ($ html )
35
+ ->not ->toContain ('<!-- TODO ' )
36
+ ->toContain ('<span class="magic-todo-mark" data-todo="Foo &quot;Bar&quot; baz"> ' );
37
+ });
38
+
29
39
it ('compiles empty HTML TODO comments ' , function () {
30
40
$ html = Blade::render ('<!-- |TODO: --> ' );
31
41
You can’t perform that action at this time.
0 commit comments