Skip to content

Commit

Permalink
some missed changes
Browse files Browse the repository at this point in the history
  • Loading branch information
BlaineHeffron committed May 29, 2024
1 parent 76065d5 commit 287ac89
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/e2e/src/test-contract-client-constructor.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const assert = require("assert");
const { expect } = require("chai");
const { spawnSync } = require("node:child_process");
const {
contracts,
Expand Down Expand Up @@ -111,7 +111,7 @@ describe('Contract Tests', function() {

it("hello from constructor", async function() {
const { result } = await context.client.hello({ hello: "tests" });
assert.strictEqual(result, "tests");
expect(result).to.equal("tests");
});

it("from", async function() {
Expand All @@ -125,10 +125,9 @@ describe('Contract Tests', function() {
context.publicKey,
context.keypair,
);
assert.deepStrictEqual(
constructorWorkaround(clientFromFrom),
expect(constructorWorkaround(clientFromFrom)).to.deep.equal(
constructorWorkaround(context.client),
);
assert.deepStrictEqual(context.client.spec.entries, clientFromFrom.spec.entries);
expect(context.client.spec.entries).to.deep.equal(clientFromFrom.spec.entries);
});
});
});

0 comments on commit 287ac89

Please sign in to comment.