Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Devnull/NataNullers/ScoreCommit.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final class ScoreCommit

public static function body(Run $run): string
{
return "i got a new high score on Nata Nu//ers: {$run->score}\n\n```".self::Fence."\n"
return "I got a new high score on Nata Nu//ers: {$run->score}\n\n```".self::Fence."\n"
.implode('.', ['v1', $run->id, $run->score, $run->endedAt, $run->signature])
."\n```";
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/Devnull/NataNullers/RunTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
$run = Run::sign(testKey(), 'user-1', 1234, 1760000000);
$body = ScoreCommit::body($run);

expect($body)->toStartWith("i got a new high score on Nata Nu//ers: 1234\n\n```nata-nullers\nv1.")
expect($body)->toStartWith("I got a new high score on Nata Nu//ers: 1234\n\n```nata-nullers\nv1.")
->and(ScoreCommit::parse($body, 'user-1'))->toEqual($run)
->and(ScoreCommit::parse($body, 'user-1')->signer())->toBe(testKey()->fingerprint());
});
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/Screens/NataNullersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ function tapResult(TestableComponent $screen, string $button): TestableComponent

$run = app(HighScore::class)->best('0199e5c4-0000-7000-8000-000000000001');

expect(skiaText(shownResults()))->toContain('i got a new high score on Nata Nu//ers: 1', 'Post to /dev/null');
expect(skiaText(shownResults()))->toContain('I got a new high score on Nata Nu//ers: 1', 'Post to /dev/null');
Http::assertNotSent(fn (Request $request): bool => str_ends_with($request->url(), '/api/v1/commits'));

tapResult($screen, 'post')->assertSet('shared', true);
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/Screens/ScoreCardTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function logWithScore(int $score = 1234, string $signedFor = 'u2'): TestableComp
skipWithoutSkia();

$screen = logWithScore()
->assertSee('i got a new high score on Nata Nu//ers: 1234')
->assertSee('I got a new high score on Nata Nu//ers: 1234')
->assertSee('Beat 1,234')
->assertSee('Signed by their device');

Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Devnull/ScoreCardTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function scoreBody(int $score = 1234, string $userId = 'u1'): string
$commit = Commit::fromArray(scoreCommitJson(scoreBody()));

expect($commit->scoreCard)->toEqual(new ScoreCard(1234, signed: true))
->and($commit->plainText())->toBe('i got a new high score on Nata Nu//ers: 1234')
->and($commit->plainText())->toBe('I got a new high score on Nata Nu//ers: 1234')
->and(array_filter($commit->content, fn ($block) => $block->isCode()))->toBeEmpty()
->and($commit->isFolded())->toBeFalse();
});
Expand All @@ -43,7 +43,7 @@ function scoreBody(int $score = 1234, string $userId = 'u1'): string
$commit = Commit::fromArray(scoreCommitJson($body, $authorId));

expect($commit->scoreCard->signed)->toBeFalse()
->and($commit->plainText())->toStartWith('i got a new high score');
->and($commit->plainText())->toStartWith('I got a new high score');
})->with([
'lifted into another author\'s commit' => fn () => [scoreBody(10, 'u1'), 'u2'],
'score edited' => fn () => [str_replace('.10.', '.9999.', scoreBody(10)), 'u1'],
Expand Down