Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Jan 12, 2024
1 parent 114af5a commit fabfb2f
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
"illuminate/queue": "^7.20|^8.19|^9.0|^10.0|^11.0",
"illuminate/support": "^7.20|^8.19|^9.0|^10.0|^11.0",
"spatie/backtrace": "^1.0",
"spatie/ray": "^1.37|dev-main",
"spatie/ray": "dev-main",
"symfony/stopwatch": "4.2|^5.1|^6.0|^7.0",
"zbateson/mail-mime-parser": "^1.3.1|^2.0"
},
"require-dev": {
"guzzlehttp/guzzle": "^7.3",
"laravel/framework": "^7.20|^8.19|^9.0|^10.0|^11.0",
"orchestra/testbench-core": "^5.0|^6.0|^7.0|^8.0|^9.0",
"pestphp/pest": "^1.22|^2.0",
"pestphp/pest": "^1.22",
"phpstan/phpstan": "^0.12.93",
"phpunit/phpunit": "^9.3|^10.1",
"spatie/pest-plugin-snapshots": "^1.1|^2.0"
Expand Down
11 changes: 10 additions & 1 deletion tests/Unit/MarkdownTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
<?php

use function Pest\version;

it('can render and send markdown', function () {
ray()->markdown('## Hello World!');

assertMatchesOsSafeSnapshot($this->client->sentRequests());
});
})->skip(version_compare(version(), '2.0.0', '>='));


it('can render and send markdown for Pest 2', function () {
ray()->markdown('## Hello World!');

assertMatchesOsSafeSnapshot($this->client->sentRequests());
})->skip(version_compare(version(), '2.0.0', '<'));
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"uuid": "fakeUuid",
"payloads": [
{
"type": "custom",
"content": {
"content": "<style>a { text-decoration:underline!important; }<\/style><div class=\"w-100 block\" style=\"font-size:1.8em!important;\">Hello World!<\/div>",
"label": "Markdown"
},
"origin": {
"file": "\/vendor\/pestphp\/pest\/src\/Factories\/TestCaseMethodFactory.php",
"line_number": 110,
"hostname": "fake-hostname"
}
}
],
"meta": []
}
]

0 comments on commit fabfb2f

Please sign in to comment.