Fix formatting inconsistencies in test files by removing unnecessary blank lines

- Cleaned up the TestJobCRUD, TestCategoryCRUD, and TestLogCRUD functions in data_test.go by removing extra blank lines, improving code readability and consistency.
This commit is contained in:
Max 2025-09-01 12:32:33 +08:00
parent a1869726d5
commit 2c541adbbb

View file

@ -41,7 +41,7 @@ func TestJobCRUD(t *testing.T) {
CreatedAt: time.Now(),
UpdatedAt: time.Now(),
}
// Ensure cleanup even if test fails
defer func() {
job.RemoveJobs([]string{testJob.JobID})
@ -156,7 +156,7 @@ func TestCategoryCRUD(t *testing.T) {
CreatedAt: time.Now(),
UpdatedAt: time.Now(),
}
// Ensure cleanup even if test fails
defer func() {
job.RemoveCategories([]string{testCategory.CategoryID})
@ -398,7 +398,7 @@ func TestLogCRUD(t *testing.T) {
if err != nil {
t.Fatalf("Failed to create test job: %v", err)
}
// Ensure cleanup even if test fails
defer func() {
job.RemoveJobs([]string{testJob.JobID})