MCPcopy
hub / github.com/pillarjs/iconv-lite / checkUtf8EncodeStream

Function checkUtf8EncodeStream

test/streams-test.js:327–333  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

325
326describe("Encoding using internal modules with surrogates in separate chunks:", function () {
327 function checkUtf8EncodeStream (input) {
328 return checkEncodeStream({
329 encoding: "utf8",
330 input: input,
331 output: Buffer.from(input.join(""), "utf8").toString("hex")
332 })
333 }
334
335 it("a single string", checkUtf8EncodeStream(["\uD83D\uDE3B"]))
336

Callers 1

streams-test.jsFile · 0.85

Calls 1

checkEncodeStreamFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…