Skip to content

Commit

Permalink
Simplify tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ericglau committed Nov 24, 2023
1 parent aca3a01 commit e72d991
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
7 changes: 2 additions & 5 deletions packages/core/contracts/test/NamespacedToModifyImported.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {CONSTANT_USING_SELECTOR, plusTwo, plusThree, CustomErrorOutsideContract, Example as ParentExample} from "./NamespacedToModify.sol";
import {CONSTANT_USING_SELECTOR, plusTwo, plusThree, CustomErrorOutsideContract} from "./NamespacedToModify.sol";

contract Example {
using {plusTwo} for uint;
error ChildCustomError(ParentExample a);
}
contract Example {}
8 changes: 3 additions & 5 deletions packages/core/src/utils/make-namespaced.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,10 @@ Generated by [AVA](https://avajs.dev).
content: `// SPDX-License-Identifier: MIT␊
pragma solidity ^0.8.20;␊
import {CONSTANT_USING_SELECTOR, plusTwo, plusThree, CustomErrorOutsideContract, Example as ParentExample} from "./NamespacedToModify.sol";␊
import {CONSTANT_USING_SELECTOR, plusTwo, plusThree, CustomErrorOutsideContract} from "./NamespacedToModify.sol";␊
contract Example {␊
}`,
contract Example {}␊
`,
},
},
}
Expand Down
Binary file modified packages/core/src/utils/make-namespaced.test.ts.snap
Binary file not shown.

0 comments on commit e72d991

Please sign in to comment.