Files
klz-cables.com/.pnpm-store/v10/files/03/afb4ce437b33f4989f872d9ca8020794ee78a621b69760754edaf67e9c7024798ece0a539daa333911e4361a8523b748c9c70a53eaeaacae0d3b0e231db995
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

20 lines
411 B
Plaintext

'use strict'
const test = require('tape')
const decode = require('./')
test('decode', (t) => {
t.test('pg <9 escape format', (t) => {
const buffer = Buffer.from([102, 111, 111, 0, 128, 92, 255])
t.ok(buffer.equals(decode('foo\\000\\200\\\\\\377')))
t.end()
})
t.test('pg >=9 hex format', (t) => {
t.ok(decode('\\x1234').equals(Buffer.from([0x12, 0x34])))
t.end()
})
t.end()
})