Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

Commit

Permalink
Update SrcsetTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bnomei authored May 5, 2020
1 parent ac3ef46 commit 58c168d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/SrcsetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function testNonce()
'nonce' => null,
]);
$this->assertRegExp(
'/^<style>/',
'/^<srcsetplugin>\n\n<style>/',
$srcset->html()
);
$srcset = new Srcset([
Expand All @@ -66,7 +66,7 @@ public function testNonce()
'nonce' => '@NONCE@',
]);
$this->assertRegExp(
'/^<style nonce="@NONCE@">/',
'/^<srcsetplugin>\n\n<style nonce="@NONCE@">/',
$srcset->html()
);

Expand Down Expand Up @@ -103,7 +103,7 @@ public function testImageFromData()
]);

$this->assertNotRegExp(
'/^<figure.*<\/figure>$/',
'/^<srcsetplugin>\n\n<figure.*<\/figure>$/',
$srcset->html()
);

Expand Down

0 comments on commit 58c168d

Please sign in to comment.