diff --git a/test/integration/02_rlay_generate/index.js b/test/integration/02_rlay_generate/index.js index b39d6a1..8a9f034 100644 --- a/test/integration/02_rlay_generate/index.js +++ b/test/integration/02_rlay_generate/index.js @@ -13,17 +13,23 @@ describe("rlay-generate", () => { }); it("correctly generates rlay-client file", () => { - const seedFileOutputPath = path.join(__dirname, "./data/seed_output.json"); + const seedFileOutputPath = path.join( + __dirname, + "./data/seed_output.json" + ); const seedFilePath = path.join(__dirname, "./data/seed.js"); const outputPath = path.join(__dirname, "./data/rlay-client.js"); const cmdResult = childProcess.spawnSync( babelNodeCmdPath, [ - rlayGenerateCmdPath, - "--seed-file-output", seedFileOutputPath, - "--seed-file", seedFilePath, - "--output", outputPath, + rlayGenerateCmdPath, + "--seed-file-output", + seedFileOutputPath, + "--seed-file", + seedFilePath, + "--output", + outputPath ], { encoding: "utf-8" } ); @@ -46,9 +52,24 @@ describe("rlay-generate", () => { const indi = await client.Individual.create({ httpConnectionClass: true }); - const assertCid = '0x019680031b2004db02acb784cda01405eb1148592070fc27e5ae608a96efa94d4cc4698013be'; + const assertCid = + "0x019680031b2004db02acb784cda01405eb1148592070fc27e5ae608a96efa94d4cc4698013be"; assert.equal(indi.cid, assertCid); }); + + it.skip("can create Entities with different values", async () => { + const outputPath = path.join(__dirname, "./data/rlay-client.js"); + const client = require(outputPath); + + const indi1 = await client.Individual.create({ + httpConnectionClass: true + }); + const indi2 = await client.Individual.create({ + httpConnectionClass: false + }); + + assert.notEqual(indi1.cid, indi2.cid); + }); }); });