Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dionysuzx committed Apr 1, 2024
1 parent bf06985 commit badfda9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion _typos.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
[default]
# False positives
extend-ignore-identifiers-re = [
"QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG",
]

[files]
extend-exclude = [
"*.png",
"*svg",
"*.svg",
"CHANGELOG.md",
"packages/protocol/contracts/automata-attestation/**",
"packages/protocol/contracts/thirdparty/**",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ describe('extractIPFSCidFromUrl', () => {
test('should return the correct CID when a valid IPFS URL is provided', () => {
const url = 'https://ipfs.io/ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme';
const result = extractIPFSCidFromUrl(url);
expect(result).toEqual({ cid: 'QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHadWEz79ojWnPbdG' });
expect(result).toEqual({ cid: 'QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG' });
});

test('should return null when an invalid IPFS URL is provided', () => {
Expand Down

0 comments on commit badfda9

Please sign in to comment.