- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스) - Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포 - 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
29 lines
524 B
JavaScript
29 lines
524 B
JavaScript
import { TextEncoder, TextDecoder } from "../src/lib.js"
|
|
import assert from "assert"
|
|
|
|
describe("text encode/decode", () => {
|
|
const data = Uint8Array.from([
|
|
104,
|
|
101,
|
|
108,
|
|
108,
|
|
111,
|
|
32,
|
|
119,
|
|
111,
|
|
114,
|
|
108,
|
|
100,
|
|
])
|
|
|
|
it("can encode text", () => {
|
|
const bytes = new TextEncoder().encode("hello world")
|
|
assert.deepStrictEqual(bytes, data)
|
|
})
|
|
|
|
it("can decode text", () => {
|
|
const text = new TextDecoder().decode(data)
|
|
assert.equal(text, "hello world")
|
|
})
|
|
})
|