Skip to content

Commit

Permalink
Update demo.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufidimaina9989 authored Jan 26, 2024
1 parent ad75cf0 commit aa54866
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/demo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('Test SmartContract `Demo`', () => {

it('should pass non-public method `add`', async () => {
await demo.deploy(1)
const res = demo.add(50n, -20n)
const res = Demo.add(50n, -20n)

Check failure on line 28 in tests/demo.test.ts

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Property 'add' does not exist on type 'typeof Demo'.
return expect(res).to.equal(30n)
})

Expand All @@ -35,3 +35,4 @@ describe('Test SmartContract `Demo`', () => {
return expect(callContract()).to.be.rejectedWith(/incorrect diff/)
})
})

0 comments on commit aa54866

Please sign in to comment.