Files
klz-cables.com/.pnpm-store/v10/files/16/0a1de6bf73fb2d7846772005cd6c38f9b11b82aa2fce2d704158e2287fa3e668b6416b1f73b34879581c7719209703b19f9b47d62242e0a658407d2b3c3466
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

17 lines
614 B
Plaintext

'use strict'
const { test } = require('node:test')
const joinLinesWithIndentation = require('./join-lines-with-indentation')
test('joinLinesWithIndentation adds indentation to beginning of subsequent lines', t => {
const input = 'foo\nbar\nbaz'
const result = joinLinesWithIndentation({ input })
t.assert.strictEqual(result, 'foo\n bar\n baz')
})
test('joinLinesWithIndentation accepts custom indentation, line breaks, and eol', t => {
const input = 'foo\nbar\r\nbaz'
const result = joinLinesWithIndentation({ input, ident: ' ', eol: '^' })
t.assert.strictEqual(result, 'foo^ bar^ baz')
})