Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
3m1n3nc3 authored and github-actions[bot] committed Sep 3, 2024
1 parent e379092 commit 20b5e19
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions tests/Feature/RegularTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
test('can shorten link', function () {
$cuttly = new Cuttly;

$create = $cuttly->regular()->noTitle()->public()->name('john' . rand())->shorten($this->link);
$create = $cuttly->regular()->noTitle()->public()->name('john'.rand())->shorten($this->link);
$cuttly->regular()->delete($create->shortLink);

expect($create->fullLink)->toBe($this->link);
Expand All @@ -28,12 +28,12 @@
* Test if links can be edited
*/
test('can edit link', function () {
$name = 'john' . rand();
$name = 'john'.rand();
$cuttly = new Cuttly;

$create = $cuttly->regular()->noTitle()->public()->name('john1' . rand())->shorten($this->link);
$create = $cuttly->regular()->noTitle()->public()->name('john1'.rand())->shorten($this->link);
$edit = $cuttly->regular()->noTitle()->name($name)->edit($create->shortLink);
$cuttly->regular()->delete(explode('john', $create->shortLink)[0] . $name);
$cuttly->regular()->delete(explode('john', $create->shortLink)[0].$name);

expect($edit->status)->toBe(1);
}); //->skip('temporarily disabled but it works.');
Expand All @@ -44,7 +44,7 @@
test('can delete link', function () {
$cuttly = new Cuttly;

$create = $cuttly->regular()->noTitle()->public()->name('john2' . rand())->shorten($this->link);
$create = $cuttly->regular()->noTitle()->public()->name('john2'.rand())->shorten($this->link);
$delete = $cuttly->regular()->delete($create->shortLink);

expect($delete->status)->toBe(1);
Expand All @@ -56,10 +56,10 @@
test('can get stats', function () {
$cuttly = new Cuttly;

$create = $cuttly->regular()->noTitle()->public()->name('john2' . rand())->shorten($this->link);
$create = $cuttly->regular()->noTitle()->public()->name('john2'.rand())->shorten($this->link);
$stats = $cuttly->regular()->stats($create->shortLink);
$cuttly->regular()->delete($create->shortLink);

expect($stats->fullLink)->toBe($this->link);
expect($stats->shortLink)->toBe($create->shortLink);
}); //->skip('temporarily disabled but it works.');
}); //->skip('temporarily disabled but it works.');
14 changes: 7 additions & 7 deletions tests/Feature/TeamTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
test('can shorten link', function () {
$cuttly = new Cuttly;

$create = $cuttly->team()->noTitle()->public()->name('john' . rand())->shorten($this->link);
$create = $cuttly->team()->noTitle()->public()->name('john'.rand())->shorten($this->link);
$cuttly->team()->delete($create->shortLink);

expect($create->fullLink)->toBe($this->link);
Expand All @@ -19,12 +19,12 @@
* Test if links can be edited
*/
test('can edit link', function () {
$name = 'john' . rand();
$name = 'john'.rand();
$cuttly = new Cuttly;

$create = $cuttly->team()->noTitle()->public()->name('john1' . rand())->shorten($this->link);
$create = $cuttly->team()->noTitle()->public()->name('john1'.rand())->shorten($this->link);
$edit = $cuttly->team()->noTitle()->name($name)->edit($create->shortLink);
$cuttly->team()->delete(explode('john', $create->shortLink)[0] . $name);
$cuttly->team()->delete(explode('john', $create->shortLink)[0].$name);

expect($edit->status)->toBe(1);
}); //->skip('temporarily disabled but it works.');
Expand All @@ -35,7 +35,7 @@
test('can delete link', function () {
$cuttly = new Cuttly;

$create = $cuttly->team()->noTitle()->public()->name('john2' . rand())->shorten($this->link);
$create = $cuttly->team()->noTitle()->public()->name('john2'.rand())->shorten($this->link);
$delete = $cuttly->team()->delete($create->shortLink);

expect($delete->status)->toBe(1);
Expand All @@ -47,10 +47,10 @@
test('can get stats', function () {
$cuttly = new Cuttly;

$create = $cuttly->team()->noTitle()->public()->name('john3' . rand())->shorten($this->link);
$create = $cuttly->team()->noTitle()->public()->name('john3'.rand())->shorten($this->link);
$stats = $cuttly->team()->stats($create->shortLink);
$cuttly->team()->delete($create->shortLink);

expect($stats->fullLink)->toBe($this->link);
expect($stats->shortLink)->toBe($create->shortLink);
}); //->skip('temporarily disabled but it works.');
}); //->skip('temporarily disabled but it works.');

0 comments on commit 20b5e19

Please sign in to comment.