Fix styling

This commit is contained in:
mahdimsr authored and github-actions[bot] committed 2025-09-28 21:02:08 +00:00
1 parent 38114203a1
commit 526ef64ad8
10 files changed
+151 -154

No files matched your search

+13 -13
View File
@@ -14,7 +14,7 @@ beforeEach(function () {
it('can get single account successfully', function () {
$api = app(GetSingleAccountRequestContract::class);
expect(fn() => $api->getSingleAccount('USDT'))
expect(fn () => $api->getSingleAccount('USDT'))
->not->toThrow(Exception::class);
});
@@ -22,11 +22,11 @@ it('validates required margin coin parameter', function () {
$api = app(GetSingleAccountRequestContract::class);
// Test with valid margin coin
expect(fn() => $api->getSingleAccount('USDT'))
expect(fn () => $api->getSingleAccount('USDT'))
->not->toThrow(Exception::class);
// Test with different margin coins
expect(fn() => $api->getSingleAccount('BTC'))
expect(fn () => $api->getSingleAccount('BTC'))
->not->toThrow(Exception::class);
});
@@ -36,7 +36,7 @@ it('can handle different margin coins', function () {
$marginCoins = ['USDT', 'BTC', 'ETH', 'BNB', 'ADA'];
foreach ($marginCoins as $marginCoin) {
expect(fn() => $api->getSingleAccount($marginCoin))
expect(fn () => $api->getSingleAccount($marginCoin))
->not->toThrow(Exception::class);
}
});
@@ -51,11 +51,11 @@ it('can handle edge cases for margin coin', function () {
$api = app(GetSingleAccountRequestContract::class);
// Test with uppercase margin coin
expect(fn() => $api->getSingleAccount('USDT'))
expect(fn () => $api->getSingleAccount('USDT'))
->not->toThrow(Exception::class);
// Test with lowercase margin coin
expect(fn() => $api->getSingleAccount('usdt'))
expect(fn () => $api->getSingleAccount('usdt'))
->not->toThrow(Exception::class);
});
@@ -64,7 +64,7 @@ it('validates get single account response structure', function () {
// This test verifies the method can be called without throwing exceptions
// The actual response structure will be validated by the API
expect(fn() => $api->getSingleAccount('USDT'))
expect(fn () => $api->getSingleAccount('USDT'))
->not->toThrow(Exception::class);
});
@@ -74,7 +74,7 @@ it('can handle multiple get single account calls', function () {
$marginCoins = ['USDT', 'BTC', 'ETH'];
foreach ($marginCoins as $marginCoin) {
expect(fn() => $api->getSingleAccount($marginCoin))
expect(fn () => $api->getSingleAccount($marginCoin))
->not->toThrow(Exception::class);
}
});
@@ -83,11 +83,11 @@ it('validates margin coin parameter type', function () {
$api = app(GetSingleAccountRequestContract::class);
// Test with string margin coin
expect(fn() => $api->getSingleAccount('USDT'))
expect(fn () => $api->getSingleAccount('USDT'))
->not->toThrow(Exception::class);
// Test with different string formats
expect(fn() => $api->getSingleAccount('BTC'))
expect(fn () => $api->getSingleAccount('BTC'))
->not->toThrow(Exception::class);
});
@@ -95,11 +95,11 @@ it('can handle special characters in margin coin', function () {
$api = app(GetSingleAccountRequestContract::class);
// Test with margin coin containing special characters
expect(fn() => $api->getSingleAccount('USDT'))
expect(fn () => $api->getSingleAccount('USDT'))
->not->toThrow(Exception::class);
// Test with margin coin containing numbers
expect(fn() => $api->getSingleAccount('USDT'))
expect(fn () => $api->getSingleAccount('USDT'))
->not->toThrow(Exception::class);
});
@@ -108,6 +108,6 @@ it('validates get single account with empty string', function () {
// This should not throw an exception at the method level
// The API will handle validation
expect(fn() => $api->getSingleAccount(''))
expect(fn () => $api->getSingleAccount(''))
->not->toThrow(Exception::class);
});