style: configure deno fmt to use single quotes
All checks were successful
CI / Build All Platforms (Tag/Main only) (push) Has been skipped
CI / Type Check & Lint (push) Successful in 6s
CI / Build Test (Current Platform) (push) Successful in 6s

- Add singleQuote: true to deno.json fmt configuration
- Reformat all files with single quotes using deno fmt
This commit is contained in:
2025-10-19 13:14:18 +00:00
parent b935087d50
commit 071ded9c41
24 changed files with 1094 additions and 672 deletions

View File

@@ -1,4 +1,4 @@
import { assertEquals, assert } from "jsr:@std/assert@^1.0.0";
import { assert, assertEquals } from 'jsr:@std/assert@^1.0.0';
import { Logger } from '../ts/logger.ts';
// Create a Logger instance for testing
@@ -71,7 +71,7 @@ Deno.test('should create a complete logbox in one call', () => {
logger.logBox('Complete Box', [
'Line 1',
'Line 2',
'Line 3'
'Line 3',
], 40);
// Just assert that the test runs without errors
@@ -81,7 +81,7 @@ Deno.test('should create a complete logbox in one call', () => {
Deno.test('should handle content that exceeds box width', () => {
// Just ensuring no errors occur when content is too long
logger.logBox('Truncation Test', [
'This line is way too long and should be truncated because it exceeds the available space'
'This line is way too long and should be truncated because it exceeds the available space',
], 30);
// Just assert that the test runs without errors
@@ -126,13 +126,13 @@ Deno.test('Logger Demo', () => {
logger.logBox('UPS Status', [
'Power Status: onBattery',
'Battery Capacity: 75%',
'Runtime Remaining: 30 minutes'
'Runtime Remaining: 30 minutes',
], 45);
// Logbox with content that's too long for the width
logger.logBox('Truncation Example', [
'This line is short enough to fit within the box width',
'This line is way too long and will be truncated because it exceeds the available space for content within the logbox'
'This line is way too long and will be truncated because it exceeds the available space for content within the logbox',
], 40);
// Demonstrating logbox width being remembered

View File

@@ -1,4 +1,4 @@
import { assert, assertEquals, assertExists } from "jsr:@std/assert@^1.0.0";
import { assert, assertEquals, assertExists } from 'jsr:@std/assert@^1.0.0';
import { NupstSnmp } from '../ts/snmp/manager.ts';
import type { ISnmpConfig } from '../ts/snmp/types.ts';
@@ -32,7 +32,7 @@ Deno.test('Real UPS test v1', async () => {
// Use a short timeout for testing
const testSnmpConfig = {
...snmpConfig,
timeout: Math.min(snmpConfig.timeout, 10000) // Use at most 10 seconds for testing
timeout: Math.min(snmpConfig.timeout, 10000), // Use at most 10 seconds for testing
};
// Try to get the UPS status
@@ -69,7 +69,7 @@ Deno.test('Real UPS test v3', async () => {
// Use a short timeout for testing
const testSnmpConfig = {
...snmpConfig,
timeout: Math.min(snmpConfig.timeout, 10000) // Use at most 10 seconds for testing
timeout: Math.min(snmpConfig.timeout, 10000), // Use at most 10 seconds for testing
};
// Try to get the UPS status