updated folder colors, reordering, new todo page, updated sidebar
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-09-21 00:33:10 -07:00
parent df016dad14
commit f8fc561602
25 changed files with 1980 additions and 264 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
use App\Models\Folder;
use App\Models\Todo;
use App\Models\User;
use Database\Seeders\DatabaseSeeder;
use function Pest\Laravel\seed;
test('full seeding creates the test user, folders and todos', function () {
seed(DatabaseSeeder::class);
expect(User::where('email', 'test@example.com')->count())->toBe(1)
->and(Folder::count())->toBe(9)
->and(Todo::count())->toBe(8);
});
test('full seeding is idempotent', function () {
seed(DatabaseSeeder::class);
seed(DatabaseSeeder::class);
expect(User::where('email', 'test@example.com')->count())->toBe(1)
->and(Folder::count())->toBe(9)
->and(Todo::count())->toBe(8);
});