cubetiq-crypto-js/test/file.test.ts

12 lines
329 B
TypeScript
Raw Normal View History

import { randomUUID } from "crypto"
import { writeFileFromString } from "../src/util/file.util"
test("Write File from String", () => {
const filePath = "./ignore/test.json"
const fileContent = {
key: randomUUID(),
iv: randomUUID(),
}
writeFileFromString(filePath, JSON.stringify(fileContent))
})