mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-03-14 12:23:33 +00:00
chore: update trmnl base url
This commit is contained in:
parent
31ca919ba9
commit
1e43aded77
16 changed files with 109 additions and 73 deletions
|
|
@ -17,8 +17,10 @@ test('firmware check command has correct signature', function (): void {
|
|||
|
||||
test('firmware check command runs without errors', function (): void {
|
||||
// Mock the firmware API response
|
||||
$baseUrl = config('services.trmnl.base_url');
|
||||
|
||||
Http::fake([
|
||||
'https://usetrmnl.com/api/firmware/latest' => Http::response([
|
||||
$baseUrl.'/api/firmware/latest' => Http::response([
|
||||
'version' => '1.0.0',
|
||||
'url' => 'https://example.com/firmware.bin',
|
||||
], 200),
|
||||
|
|
@ -33,8 +35,10 @@ test('firmware check command runs without errors', function (): void {
|
|||
|
||||
test('firmware check command runs with download flag', function (): void {
|
||||
// Mock the firmware API response
|
||||
$baseUrl = config('services.trmnl.base_url');
|
||||
|
||||
Http::fake([
|
||||
'https://usetrmnl.com/api/firmware/latest' => Http::response([
|
||||
$baseUrl.'/api/firmware/latest' => Http::response([
|
||||
'version' => '1.0.0',
|
||||
'url' => 'https://example.com/firmware.bin',
|
||||
], 200),
|
||||
|
|
@ -57,8 +61,10 @@ test('firmware check command runs with download flag', function (): void {
|
|||
|
||||
test('firmware check command can run successfully', function (): void {
|
||||
// Mock the firmware API response
|
||||
$baseUrl = config('services.trmnl.base_url');
|
||||
|
||||
Http::fake([
|
||||
'https://usetrmnl.com/api/firmware/latest' => Http::response([
|
||||
$baseUrl.'/api/firmware/latest' => Http::response([
|
||||
'version' => '1.0.0',
|
||||
'url' => 'https://example.com/firmware.bin',
|
||||
], 200),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue