Skip to content

Commit

Permalink
test: bundled its in archive tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRBerg committed Sep 28, 2023
1 parent 873c6ca commit 61bdf47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions test/integration/archive/list/list.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,10 @@ contract List_Integration_Test is Integration_Test {
}

function test_List() external whenCallerAdmin givenAddressNotListed {
vm.expectEmit({ emitter: address(archive) });
emit List({ admin: users.admin.addr, addr: address(lockupLinear) });
archive.list(address(lockupLinear));
bool isListed = archive.isListed(address(lockupLinear));
assertTrue(isListed, "isListed");
}

function test_List_Event() external whenCallerAdmin givenAddressNotListed {
vm.expectEmit();
emit List({ admin: users.admin.addr, addr: address(lockupLinear) });
archive.list(address(lockupLinear));
}
}
8 changes: 2 additions & 6 deletions test/integration/archive/unlist/unlist.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,10 @@ contract Unlist_Integration_Test is Integration_Test {
}

function test_Unlist() external whenCallerAdmin givenAddressListed {
archive.unlist(address(lockupLinear));
bool isListed = archive.isListed(address(lockupLinear));
assertFalse(isListed, "isListed");
}

function test_Unlist_Event() external whenCallerAdmin givenAddressListed {
vm.expectEmit({ emitter: address(archive) });
emit Unlist({ admin: users.admin.addr, addr: address(lockupLinear) });
archive.unlist(address(lockupLinear));
bool isListed = archive.isListed(address(lockupLinear));
assertFalse(isListed, "isListed");
}
}

0 comments on commit 61bdf47

Please sign in to comment.