Skip to content

Commit

Permalink
test: change toString to toBooelan
Browse files Browse the repository at this point in the history
  • Loading branch information
martonmoro committed Sep 30, 2024
1 parent dbf3e6e commit 031d4ec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/program-config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ test(' Spec and Node operations', async (t) => {
const assertResult = Node.eval(root, spec.logic.assert);
const dataResult = Node.eval(root, spec.logic.data);

assert.strictEqual(assertResult.toString(), 'true');
assert.strictEqual(assertResult.toBoolean(), true);
assert.deepStrictEqual(dataResult, Field(25));
});

Expand Down Expand Up @@ -67,7 +67,7 @@ test(' Spec and Node operations', async (t) => {
const assertResult = Node.eval(root, spec.logic.assert);
const dataResult = Node.eval(root, spec.logic.data);

assert.strictEqual(assertResult.toString(), 'true');
assert.strictEqual(assertResult.toBoolean(), true);
assert.deepStrictEqual(dataResult, Field(30));
});

Expand Down Expand Up @@ -105,7 +105,7 @@ test(' Spec and Node operations', async (t) => {
const assertResult = Node.eval(root, spec.logic.assert);
const dataResult = Node.eval(root, spec.logic.data);

assert.strictEqual(assertResult.toString(), 'true');
assert.strictEqual(assertResult.toBoolean(), true);
assert.deepStrictEqual(dataResult, Bytes32.fromString('Bob'));
});

Expand All @@ -130,7 +130,7 @@ test(' Spec and Node operations', async (t) => {
const assertResult = Node.eval(root, spec.logic.assert);
const dataResult = Node.eval(root, spec.logic.data);

assert.strictEqual(assertResult.toString(), 'true');
assert.strictEqual(assertResult.toBoolean(), true);
assert.deepStrictEqual(dataResult, Bytes32.fromString('Charlie'));
});

Expand Down Expand Up @@ -166,7 +166,7 @@ test(' Spec and Node operations', async (t) => {
const assertResult = Node.eval(root, spec.logic.assert);
const dataResult = Node.eval(root, spec.logic.data);

assert.strictEqual(assertResult.toString(), 'true');
assert.strictEqual(assertResult.toBoolean(), true);
assert.deepStrictEqual(dataResult, Field(30));
});
});

0 comments on commit 031d4ec

Please sign in to comment.