Skip to content

Commit

Permalink
Leave only one test
Browse files Browse the repository at this point in the history
  • Loading branch information
d0rich committed Nov 12, 2023
1 parent bf8e11d commit b6675ff
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 122 deletions.
43 changes: 0 additions & 43 deletions contracts/tests/DSocialNetworkAccount.spec.ts

This file was deleted.

71 changes: 35 additions & 36 deletions contracts/tests/DSocialNetworkMaster.spec.ts
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
})
})
43 changes: 0 additions & 43 deletions contracts/tests/DSocialNetworkPost.spec.ts

This file was deleted.

0 comments on commit b6675ff

Please sign in to comment.