Skip to content

Commit 492a9b6

Browse files
committed
Unblaze bug
1 parent aab6a57 commit 492a9b6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/UnblazeTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
use Illuminate\Support\Facades\View;
4+
use Illuminate\Support\Facades\Blade;
45

56
describe('unblaze directive', function () {
67
beforeEach(function () {
@@ -52,6 +53,11 @@
5253

5354
// The scope should be captured and made available
5455
expect($compiled)->toContain('$scope');
56+
57+
$rendered = Blade::render($compiled);
58+
59+
// This fails. Rendered content has <div data-name="Hello World">{{ $message }}</div>
60+
expect($rendered)->toContain('<div class="dynamic">Hello World</div>');
5561
});
5662

5763
it('encodes scope into compiled view for runtime access', function () {

0 commit comments

Comments
 (0)