Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mydnic authored and github-actions[bot] committed Sep 1, 2024
1 parent 2b5fe34 commit 78adee5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions tests/CommitMessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
'message' => 'feat: fix issue with authentication
> You can now login without any issue
> Enjoy!'
]
> Enjoy!',
],
];

$result = \Mydnic\ChangelogCommitForLaravel\ChangelogCommitForLaravel::prepareCommits(collect([$commitMessage]));
Expand All @@ -30,8 +30,8 @@
],
'message' => 'feat: fix issue with authentication
Refactor the code'
]
Refactor the code',
],
];

$result = \Mydnic\ChangelogCommitForLaravel\ChangelogCommitForLaravel::prepareCommits(collect([$commitMessage]));
Expand All @@ -48,8 +48,8 @@
],
'message' => 'feat: fix issue with authentication
Refactor the code'
]
Refactor the code',
],
];

$commitMessage2 = [
Expand All @@ -61,8 +61,8 @@
'message' => 'feat: fix issue with authentication
> You can now login without any issue
> Enjoy!'
]
> Enjoy!',
],
];

$result = \Mydnic\ChangelogCommitForLaravel\ChangelogCommitForLaravel::prepareCommits(collect([$badcommitMessage, $commitMessage2]));
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ protected function setUp(): void
parent::setUp();

Factory::guessFactoryNamesUsing(
fn(string $modelName) => 'Mydnic\\ChangelogCommitForLaravel\\Database\\Factories\\' . class_basename($modelName) . 'Factory'
fn (string $modelName) => 'Mydnic\\ChangelogCommitForLaravel\\Database\\Factories\\'.class_basename($modelName).'Factory'
);
}

Expand All @@ -28,7 +28,7 @@ public function getEnvironmentSetUp($app)
{
config()->set('database.default', 'testing');

$migration = include __DIR__ . '/../database/migrations/create_changelog_commit_for_laravel_table.php.stub';
$migration = include __DIR__.'/../database/migrations/create_changelog_commit_for_laravel_table.php.stub';
$migration->up();
}
}

0 comments on commit 78adee5

Please sign in to comment.