From e72d9914d8a93955be9af6f7b1fc48551e5b2f96 Mon Sep 17 00:00:00 2001 From: Eric Lau Date: Fri, 24 Nov 2023 15:37:24 -0500 Subject: [PATCH] Simplify tests --- .../test/NamespacedToModifyImported.sol | 7 ++----- .../core/src/utils/make-namespaced.test.ts.md | 8 +++----- .../src/utils/make-namespaced.test.ts.snap | Bin 1230 -> 1216 bytes 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/packages/core/contracts/test/NamespacedToModifyImported.sol b/packages/core/contracts/test/NamespacedToModifyImported.sol index 2961c1238..23828588d 100644 --- a/packages/core/contracts/test/NamespacedToModifyImported.sol +++ b/packages/core/contracts/test/NamespacedToModifyImported.sol @@ -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); -} \ No newline at end of file +contract Example {} diff --git a/packages/core/src/utils/make-namespaced.test.ts.md b/packages/core/src/utils/make-namespaced.test.ts.md index a531b3cc5..b927b1d2c 100644 --- a/packages/core/src/utils/make-namespaced.test.ts.md +++ b/packages/core/src/utils/make-namespaced.test.ts.md @@ -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 {}␊ + `, }, }, } diff --git a/packages/core/src/utils/make-namespaced.test.ts.snap b/packages/core/src/utils/make-namespaced.test.ts.snap index c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