mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-06-11 02:50:29 +00:00
3875e127e4
- 🗑️ 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.
17 lines
465 B
PHP
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');
|
|
});
|