Skip to content

Commit

Permalink
update NounsDescriptorV3 forge tests and helper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
EricDevito committed Dec 25, 2023
1 parent a17bd59 commit 81e5f4d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
11 changes: 0 additions & 11 deletions packages/nouns-contracts/test/foundry/NounsDescriptorV3.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -188,17 +188,6 @@ contract NounsDescriptorV3Test is Test {
descriptor.addBackground('');
}

function testUpdateBackgroundUsesArt() public {
vm.expectCall(address(art), abi.encodeCall(art.updateBackground, ('fff000')));
descriptor.updateBackground('fff000');
}

function testCannotUpdateBackgroundWhenPartsLocked() public {
descriptor.lockParts();
vm.expectRevert(bytes('Parts are locked'));
descriptor.updateBackground('fff000');
}

function testSetPaletteUsesArt() public {
vm.expectCall(address(art), abi.encodeCall(art.setPalette, (0, '123456')));
descriptor.setPalette(0, '123456');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import 'forge-std/Test.sol';
import { INounsDAOShared } from './INounsDAOShared.sol';
import { DescriptorHelpers } from './DescriptorHelpers.sol';
import { NounsDescriptorV2 } from '../../../contracts/NounsDescriptorV2.sol';
import { NounsDescriptorV3 } from '../../../contracts/NounsDescriptorV3.sol';
import { SVGRenderer } from '../../../contracts/SVGRenderer.sol';
import { NounsArt } from '../../../contracts/NounsArt.sol';
import { NounsDAOExecutor } from '../../../contracts/governance/NounsDAOExecutor.sol';
Expand Down

0 comments on commit 81e5f4d

Please sign in to comment.