import assert from 'node:assert/strict'
import test from 'node:test'
import { validateIconSource } from './validateIcons.mjs'
test('accepts a canonical stroke icon', () => {
const source = `
`
assert.deepEqual(validateIconSource(source), [])
})
test('accepts a fill-only icon', () => {
const source = `
`
assert.deepEqual(validateIconSource(source), [])
})
test('rejects a non-canonical stroke width', () => {
const source = `
`
assert.deepEqual(validateIconSource(source, 'thin.svg'), [
'thin.svg: stroke icons must use stroke-width="1.5" on the root