Project initialised with AlgoKit CLI using template: https://github.com/algorandfoundation/algokit-fullstack-template.git
This commit is contained in:
@ -0,0 +1,14 @@
|
||||
import { TestExecutionContext } from '@algorandfoundation/algorand-typescript-testing'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { HelloWorld } from './contract.algo'
|
||||
|
||||
describe('HelloWorld contract', () => {
|
||||
const ctx = new TestExecutionContext()
|
||||
it('Logs the returned value when sayHello is called', () => {
|
||||
const contract = ctx.contract.create(HelloWorld)
|
||||
|
||||
const result = contract.hello('Sally')
|
||||
|
||||
expect(result).toBe('Hello, Sally')
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user