Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/okikio/utils.
Something went wrong. Try again.
12345678910111213141516import { expect } from '@std/expect'import { describe, it } from 'node:test'
import { blank } from './value.ts'
describe('blank', () => { it('treats whitespace-only strings as missing', () => { expect(blank(' ')).toBeUndefined() })
it('trims configured string values without changing non-string values', () => { expect(blank(' production ')).toBe('production') expect(blank(42)).toBe(42) })})