test sender and author of work evidence post
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 38s Details

This commit is contained in:
Ladd Hoffman 2024-03-12 14:18:36 -05:00
parent 83f8474905
commit cb8d430d71
1 changed files with 5 additions and 0 deletions

View File

@ -146,12 +146,14 @@ describe('Work1', () => {
describe('Work evidence and approval/disapproval', () => {
let dao;
let work1;
let account1;
let account2;
beforeEach(async () => {
const setup = await loadFixture(deploy);
dao = setup.dao;
work1 = setup.work1;
account1 = setup.account1;
account2 = setup.account2;
await dao.stakeAvailability(work1.target, 50, STAKE_DURATION);
});
@ -176,6 +178,9 @@ describe('Work1', () => {
await work1.connect(account2).requestWork({ value: WORK1_PRICE });
await work1.submitWorkEvidence(0);
await expect(work1.submitWorkApproval(0, true)).to.emit(dao, 'ValidationPoolInitiated').withArgs(1);
const post = await dao.posts(1);
expect(post.author).to.equal(account1);
expect(post.sender).to.equal(work1.target);
});
it('should be able to submit work disapproval', async () => {