Files
einundzwanzig-app/tests/Feature/Api/JsonFeedTest.php
T
HolgerHatGarKeineNode 3875e127e4 🔥 **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.
2026-06-08 01:08:07 +02:00

17 lines
465 B
PHP

<?php
use App\Models\User;
it('returns nostr-pubkeys in /api/nostrplebs', function () {
User::factory()->create(['nostr' => 'npub1'.str_repeat('a', 58)]);
User::factory()->create(['nostr' => 'npub1'.str_repeat('b', 58)]);
User::factory()->create(['nostr' => null]);
$response = $this->getJson('/api/nostrplebs');
$response->assertSuccessful();
expect($response->json())
->toHaveCount(2)
->each->toStartWith('npub1');
});