Skip to content

Commit

Permalink
update-expected-results
Browse files Browse the repository at this point in the history
  • Loading branch information
crypto-vincent committed Jun 17, 2024
1 parent af22183 commit dccd1b0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/bolt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,10 @@ describe("bolt", () => {
componentVelocityEntity1Pda
);
logVelocity("Apply System Velocity: Entity 1", velocity);
expect(velocity.x.toNumber()).to.equal(0);
expect(velocity.x.toNumber()).to.equal(10);
expect(velocity.y.toNumber()).to.equal(0);
expect(velocity.z.toNumber()).to.equal(0);
expect(velocity.lastApplied.toNumber()).to.equal(0);
expect(velocity.lastApplied.toNumber()).to.not.equal(0);

const position = await exampleComponentPosition.account.position.fetch(
componentPositionEntity1Pda
Expand Down Expand Up @@ -446,9 +446,7 @@ describe("bolt", () => {
await provider.sendAndConfirm(applySystem.transaction);
} catch (error) {
failed = true;
console.log("error", error);
console.log("error.message", error.message);
expect(error.message).to.contain("Invalid authority");
expect(error.logs.join("\n")).to.contain("Error Code: InvalidAuthority");
}
expect(failed).to.equal(true);

Expand Down Expand Up @@ -493,7 +491,9 @@ describe("bolt", () => {
.rpc();
} catch (error) {
console.log("error.message", error.message);
expect(error.message).to.contain("InvalidCaller");
expect(error.message).to.contain(
"bolt_component. Error Code: AccountOwnedByWrongProgram"
);
invalid = true;
}
expect(invalid).to.equal(true);
Expand Down

0 comments on commit dccd1b0

Please sign in to comment.