Skip to content

Commit

Permalink
♻️ codeclimate, added a few tests and fix a few bugs
Browse files Browse the repository at this point in the history
Signed-off-by: bnomei <[email protected]>
  • Loading branch information
bnomei committed Jul 21, 2024
1 parent e08cc6c commit 7918a17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/JanitorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
});

it('resolve queries in commands without proving a model when executing', function () {
$command = 'janitor:pipe --data "{( site.title )}" --to "message"';
$command = 'janitor:pipe --data "{( site.title )}" --to "message" --quiet';
[$name, $args] = Janitor::parseCommand($command);
$args = Janitor::resolveQueriesInCommand($args);

Expand All @@ -131,6 +131,8 @@
'Janitor Tests',
'--to',
'message',
'--quiet',
''
]);

$result = (new Janitor)->command($command);
Expand Down

0 comments on commit 7918a17

Please sign in to comment.