mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-05-20 10:04:53 +00:00
🧪 Test: Update assertions to reflect HTML-formatted descriptions and strict boolean casting
This commit is contained in:
@@ -144,7 +144,7 @@ it('can update no email preference', function () {
|
||||
->set('no', true)
|
||||
->assertSet('showEmail', false);
|
||||
|
||||
expect($pleb->fresh()->no_email)->toBeTrue();
|
||||
expect((bool) $pleb->fresh()->no_email)->toBeTrue();
|
||||
});
|
||||
|
||||
it('can save membership application', function () {
|
||||
|
||||
@@ -90,7 +90,7 @@ it('creates project proposal successfully', function () {
|
||||
expect(ProjectProposal::count())->toBe(1);
|
||||
$project = ProjectProposal::first();
|
||||
expect($project->name)->toBe('Test Project');
|
||||
expect($project->description)->toBe('This is a test project for unit testing purposes.');
|
||||
expect($project->description)->toBe('<p>This is a test project for unit testing purposes.</p>');
|
||||
});
|
||||
|
||||
it('associates project proposal with current pleb', function () {
|
||||
|
||||
@@ -105,7 +105,7 @@ it('updates project proposal successfully', function () {
|
||||
|
||||
$this->project->refresh();
|
||||
expect($this->project->name)->toBe('Updated Name');
|
||||
expect($this->project->description)->toBe('Updated Description');
|
||||
expect($this->project->description)->toBe('<p>Updated Description</p>');
|
||||
});
|
||||
|
||||
it('saves accepted and sats_paid when admin updates', function () {
|
||||
|
||||
Reference in New Issue
Block a user