-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
35 additions
and
122 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,42 @@ | ||
// TODO: fix tests | ||
// import { Blockchain, SandboxContract } from '@ton-community/sandbox' | ||
// import { toNano } from 'ton-core' | ||
// import { DSocialNetworkMaster } from '../wrappers/DSocialNetworkMaster' | ||
// import '@ton-community/test-utils' | ||
import { Blockchain, SandboxContract } from '@ton-community/sandbox' | ||
import { toNano } from 'ton-core' | ||
import { DSocialNetworkMaster } from '../wrappers/DSocialNetworkMaster' | ||
import '@ton-community/test-utils' | ||
|
||
// describe('DSocialNetworkMaster', () => { | ||
// let blockchain: Blockchain | ||
// let dSocialNetworkMaster: SandboxContract<DSocialNetworkMaster> | ||
describe('DSocialNetworkMaster', () => { | ||
let blockchain: Blockchain | ||
let dSocialNetworkMaster: SandboxContract<DSocialNetworkMaster> | ||
|
||
// beforeEach(async () => { | ||
// blockchain = await Blockchain.create() | ||
beforeEach(async () => { | ||
blockchain = await Blockchain.create() | ||
|
||
// dSocialNetworkMaster = blockchain.openContract( | ||
// await DSocialNetworkMaster.fromInit() | ||
// ) | ||
dSocialNetworkMaster = blockchain.openContract( | ||
await DSocialNetworkMaster.fromInit() | ||
) | ||
|
||
// const deployer = await blockchain.treasury('deployer') | ||
const deployer = await blockchain.treasury('deployer') | ||
|
||
// const deployResult = await dSocialNetworkMaster.send( | ||
// deployer.getSender(), | ||
// { | ||
// value: toNano('0.05') | ||
// }, | ||
// { | ||
// $$type: 'Deploy', | ||
// queryId: 0n | ||
// } | ||
// ) | ||
const deployResult = await dSocialNetworkMaster.send( | ||
deployer.getSender(), | ||
{ | ||
value: toNano('0.05') | ||
}, | ||
{ | ||
$$type: 'Deploy', | ||
queryId: 0n | ||
} | ||
) | ||
|
||
// expect(deployResult.transactions).toHaveTransaction({ | ||
// from: deployer.address, | ||
// to: dSocialNetworkMaster.address, | ||
// deploy: true, | ||
// success: true | ||
// }) | ||
// }) | ||
expect(deployResult.transactions).toHaveTransaction({ | ||
from: deployer.address, | ||
to: dSocialNetworkMaster.address, | ||
deploy: true, | ||
success: true | ||
}) | ||
}) | ||
|
||
// it('should deploy', async () => { | ||
// // the check is done inside beforeEach | ||
// // blockchain and dSocialNetworkMaster are ready to use | ||
// }) | ||
// }) | ||
it('should deploy', async () => { | ||
// the check is done inside beforeEach | ||
// blockchain and dSocialNetworkMaster are ready to use | ||
}) | ||
}) |
This file was deleted.
Oops, something went wrong.