import { toNano, beginCell } from "ton"; import { ContractSystem } from "ton-emulator"; import {TONB} from './output/jetton_TONB'; describe('jetton', () => { it('should deploy', async () => { // Create jetton let system = await ContractSystem.create(); let owner = system.treasure('owner'); let contract = system.open(await TONB.fromInit(owner.address, null)); let tracker = system.track(contract.address); // Mint await contract.send(owner, { value: toNano(1) }, { $$type: 'Mint', amount: toNano(1000000) }); await system.run(); expect(tracker.events()).toMatchSnapshot(); // Check owner expect((await contract.getOwner()).toString()).toEqual(owner.address.toString()); // Data let data = await contract.getGetJettonData(); // console.warn(data); }); });