Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
supun-io committed Oct 22, 2024
1 parent ee66127 commit 6146e48
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 31 deletions.
16 changes: 3 additions & 13 deletions tests/Feature/UnfoldTest.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
<?php

use Hyvor\Unfold\Unfold;
use Hyvor\Unfold\UnfoldMethod;

it('gets link', function () {
$response = Unfold::unfold('https://talk.hyvor.com');
dd($response);
});

it('gets embed', function () {
$response = Unfold::unfold(
'https://www.youtube.com/watch?v=8scL5oJX6CM',
UnfoldMethod::EMBED,
);
dd($response);
});
it('fetches link', function () {
$response = Unfold::unfold('https://hyvor.com');
});
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,12 @@
});

it('with already correct sort', function () {
$metadata = [
new MetadataObject(MetadataKeyType::OG_SITE_NAME, 'OG Site name'),
new MetadataObject(MetadataKeyType::TWITTER_SITE, 'Twitter Site Name'),
];

$priority = new MetadataPriority($metadata);
$authors = $priority->siteName();
expect($authors)->toEqual('OG Site name');
});
18 changes: 0 additions & 18 deletions tests/Unit/RedirectTest.php

This file was deleted.

0 comments on commit 6146e48

Please sign in to comment.