style: configure deno fmt to use single quotes
- Add singleQuote: true to deno.json fmt configuration - Reformat all files with single quotes using deno fmt
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user