mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-06-21 18:00:31 +00:00
🔥 **Remove Highscore and Bindle features**
- 🗑️ Deleted `Highscore` feature (Model, Controller, Factory, Tests, Routes, Migrations) and associated logic. - 🗑️ Removed `BindleController` and its related test. - 🧹 Cleaned up unused routes, database seeders, and localization references. - 🚫 Deprecated inactive book rental guide component and associated views.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<?php
|
||||
|
||||
use App\Models\LibraryItem;
|
||||
use App\Models\User;
|
||||
|
||||
it('returns nostr-pubkeys in /api/nostrplebs', function () {
|
||||
@@ -15,16 +14,3 @@ it('returns nostr-pubkeys in /api/nostrplebs', function () {
|
||||
->toHaveCount(2)
|
||||
->each->toStartWith('npub1');
|
||||
});
|
||||
|
||||
it('returns bindle-type library items in /api/bindles', function () {
|
||||
LibraryItem::factory()->create(['type' => 'bindle', 'name' => 'My Bindle']);
|
||||
LibraryItem::factory()->create(['type' => 'article', 'name' => 'My Article']);
|
||||
|
||||
$response = $this->getJson('/api/bindles');
|
||||
|
||||
$response->assertSuccessful();
|
||||
$names = collect($response->json())->pluck('name');
|
||||
expect($names->all())
|
||||
->toContain('My Bindle')
|
||||
->not->toContain('My Article');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user