arnaucube
arnaucube/circomPublic Self-hosted repository
circom/test/sha256.js
test/sha256.jsRaw
 1const chai = require("chai");
 2const path = require("path");
 3
 4const compiler = require("../index.js");
 5
 6const assert = chai.assert;
 7
 8describe("SHA256 test", () => {
 9    it("Should create a constant circuit", async () => {
10
11        const cir = await compiler(path.join(__dirname, "circuits", "constants_test.jaz"));
12        assert.equal(cir.nVars, 2);
13    });
14});