Skip to content

Commit ed9448f

Browse files
committed
Fix tests.
1 parent 27411c9 commit ed9448f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Integration/QueryDataTableTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,18 +154,18 @@ public function it_does_not_allow_search_on_added_columns()
154154
}
155155

156156
/** @test */
157-
public function it_allows_raw_html_on_non_closure_added_columns()
157+
public function it_does_not_allow_raw_html_on_non_closure_added_columns()
158158
{
159159
$json = $this->call('GET', '/query/xss-add')->json();
160-
$this->assertEquals('<a href="#">Allowed</a>', $json['data'][0]['foo']);
160+
$this->assertNotEquals('<a href="#">Allowed</a>', $json['data'][0]['foo']);
161161
$this->assertNotEquals('<a href="#">Allowed</a>', $json['data'][0]['bar']);
162162
}
163163

164164
/** @test */
165-
public function it_allows_raw_html_on_non_closure_edited_columns()
165+
public function it_does_not_allow_raw_html_on_non_closure_edited_columns()
166166
{
167167
$json = $this->call('GET', '/query/xss-edit')->json();
168-
$this->assertEquals('<a href="#">Allowed</a>', $json['data'][0]['name']);
168+
$this->assertNotEquals('<a href="#">Allowed</a>', $json['data'][0]['name']);
169169
$this->assertNotEquals('<a href="#">Allowed</a>', $json['data'][0]['email']);
170170
}
171171

0 commit comments

Comments
 (0)