diff --git a/.DS_Store b/.DS_Store index 78c1546..2e7c94e 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5d79d24..087aeda 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,4 +22,4 @@ jobs: - name: Build run: | yarn install - yarn test + yarn test zlib-inflate diff --git a/tests/serialized.test.ts b/tests/serialized.test.ts deleted file mode 100644 index 1448dfa..0000000 --- a/tests/serialized.test.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { dump, load } from "@hyrious/marshal"; -import * as fs from "fs"; -import * as path from "path"; - -const targetDir = [__dirname, "example"]; - -describe("dump", () => { - it("dump(null)", () => { - const result = new Uint8Array([4, 8, 48]); - - expect(dump(null)).toEqual(result); - }); - - it('load("\x04\b0")', () => { - const result = new Uint8Array([4, 8, 48]); - - expect(load(result)).toEqual(null); - }); - - it("echo 테스트", () => { - const serialized = fs.readFileSync( - path.join(...targetDir, "test.dump"), - ); - - // Marshal.dump(test).unpack("U*") - expect(dump(load(serialized))).toEqual( - new Uint8Array([ - 4, 8, 111, 58, 9, 84, 101, 115, 116, 6, 58, 10, 64, 110, 97, - 109, 101, 73, 34, 10, 104, 101, 108, 108, 111, 6, 58, 6, 69, 84, - ]), - ); - }); -});