Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
frangio committed Sep 28, 2023
1 parent 59b82ec commit 50eaf31
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/core.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ test('snapshot imports', async t => {
const exposed = getExposed(bi.output, sourceName => sourceName === 'contracts/Imported.sol', config);
const exposedFiles = [...exposed.values()].sort((a, b) => a.absolutePath.localeCompare(b.absolutePath))
for (const rf of exposedFiles) {
const { absolutePath, content: { rawContent } } = rf;
const absolutePath = path.relative(process.cwd(), rf.absolutePath);
const { rawContent } = rf.content;
t.snapshot({ absolutePath, rawContent });
}
});
4 changes: 2 additions & 2 deletions src/core.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 1
{
absolutePath: '/home/frangio/oz/exposed/contracts-exposed/$_/@openzeppelin/contracts/proxy/Clones.sol',
absolutePath: 'contracts-exposed/$_/@openzeppelin/contracts/proxy/Clones.sol',
rawContent: `// SPDX-License-Identifier: UNLICENSED␊
pragma solidity >=0.6.0;␊
Expand Down Expand Up @@ -1067,7 +1067,7 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 2
{
absolutePath: '/home/frangio/oz/exposed/contracts-exposed/Imported.sol',
absolutePath: 'contracts-exposed/Imported.sol',
rawContent: `// SPDX-License-Identifier: UNLICENSED␊
pragma solidity >=0.6.0;␊
Expand Down
Binary file modified src/core.test.ts.snap
Binary file not shown.

0 comments on commit 50eaf31

Please sign in to comment.