1
0
Fork 0
mirror of https://github.com/archtechx/money.git synced 2025-12-12 11:24:03 +00:00

Change test name

This commit is contained in:
David 2022-05-16 08:39:52 +02:00
parent 7885a82b56
commit bc16d478f2
No known key found for this signature in database
GPG key ID: EC68B85E411F4753

View file

@ -47,7 +47,7 @@ test('the format method accepts overrides', function () {
expect(Money::fromDecimal(10.45)->formatted(decimalSeparator: ',', suffix: ' USD'))->toBe('$10,45 USD');
});
test('setting for deleting trailing decimal zeros', function () {
test('the trailing decimal zeros trimming', function () {
expect(Money::fromDecimal(10.00, SEK::class)->formatted())->toBe('10 kr');
expect(Money::fromDecimal(10.10, SEK::class)->formatted())->toBe('10.1 kr');
expect(Money::fromDecimal(10.12, SEK::class)->formatted())->toBe('10.12 kr');