Skip to content
This repository was archived by the owner on Jun 8, 2018. It is now read-only.

Commit 9709f45

Browse files
committed
Updated the tests
1 parent fd8930d commit 9709f45

File tree

3 files changed

+4
-20
lines changed

3 files changed

+4
-20
lines changed

demos/layouts/section.blade.php

+3-9
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,8 @@
44

55
@yield('third')
66

7-
@section('fourth', "<p>Fourth parent.</p>")
8-
9-
@section('fifth')
10-
<p>Fifth parent.</p>
11-
@endsection
12-
13-
@section('sixth')
14-
<p>Sixth parent.</p>
15-
@endsection
7+
@section('fourth')
8+
<p>Fourth parent.</p>
9+
@show
1610

1711
@yield('it-has-to-be-removed')

demos/section.blade.php

-10
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,4 @@
1313
@section('fourth')
1414
@parent
1515
<p>Hello, world!</p>
16-
@stop
17-
18-
@section('fifth')
19-
@parent
20-
<p>Hello, world!</p>
21-
@endsection
22-
23-
@section('fifth')
24-
@parent
25-
<p>Hello, world!</p>
2616
@stop

tests/section-directive.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ test("the output should contain the content from extended file", t => {
1414
// There could be a lot of line breaks so remove them to be sure that the test will pass
1515
let html = HTML.replace(/\n/g, "")
1616

17-
t.is(html, "<p>Hello, world!</p><p>Laravel Blade Parser works!</p><p>I don't know what else to say.</p><p>Fourth parent.</p><p>Hello, world!</p><p>Fifth parent.</p><p>Hello, world!</p><p>Sixth parent.</p><p>Hello, world!</p>")
17+
t.is(html, "<p>Hello, world!</p><p>Laravel Blade Parser works!</p><p>I don't know what else to say.</p><p>Fourth parent.</p><p>Hello, world!</p>")
1818
})

0 commit comments

Comments
 (0)