Skip to content

Commit

Permalink
ini tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Apr 2, 2024
1 parent effe37e commit 634cf89
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/core/src/ini.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { describe, test } from "node:test"
import assert from "node:assert/strict"
import { INIParse, INIStringify } from "./ini"

describe("ini", () => {
test("rountrip", () => {
const o = { a: "1", b: "foo" }
const text = INIStringify(o)
const r = INIParse(text)

assert.equal(JSON.stringify(r), JSON.stringify(o))
})
})

0 comments on commit 634cf89

Please sign in to comment.