🧪 Test: Update assertions to reflect HTML-formatted descriptions and strict boolean casting

This commit is contained in:
HolgerHatGarKeineNode
2026-05-18 22:07:16 +02:00
parent 3b855e9517
commit cdfc738ede
3 changed files with 3 additions and 3 deletions
@@ -144,7 +144,7 @@ it('can update no email preference', function () {
->set('no', true) ->set('no', true)
->assertSet('showEmail', false); ->assertSet('showEmail', false);
expect($pleb->fresh()->no_email)->toBeTrue(); expect((bool) $pleb->fresh()->no_email)->toBeTrue();
}); });
it('can save membership application', function () { it('can save membership application', function () {
@@ -90,7 +90,7 @@ it('creates project proposal successfully', function () {
expect(ProjectProposal::count())->toBe(1); expect(ProjectProposal::count())->toBe(1);
$project = ProjectProposal::first(); $project = ProjectProposal::first();
expect($project->name)->toBe('Test Project'); 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 () { it('associates project proposal with current pleb', function () {
@@ -105,7 +105,7 @@ it('updates project proposal successfully', function () {
$this->project->refresh(); $this->project->refresh();
expect($this->project->name)->toBe('Updated Name'); 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 () { it('saves accepted and sats_paid when admin updates', function () {