UNPKG

tokyo-solidity-template

Version:
23 lines (17 loc) 613 B
import path from "path"; import rimraf from "rimraf"; import schema from "tokyo-schema"; import Generator from "../src/lib/Generator"; const verbose = process.env.VERBOSE || false; const should = require("chai") .use(require("chai-as-promised")) .should(); const remove = (...args) => !verbose && rimraf.sync(...args); describe("Generator", () => { it("should generate Sample Project", async () => { const outputPath = path.resolve(__dirname, "../test_1_out"); const g = new Generator(require("tokyo-test-data/sample1.json"), outputPath); await g.write(); remove(outputPath); }); });