From 1ea4be8f6c26ad2ee1b1146de2eb4c86df65cdb3 Mon Sep 17 00:00:00 2001 From: tabcat Date: Fri, 6 Dec 2024 11:11:10 +0700 Subject: [PATCH] test(strings): remove custom codec from add spec --- packages/strings/test/add.spec.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/strings/test/add.spec.ts b/packages/strings/test/add.spec.ts index 47a414bd9..a6c50345b 100644 --- a/packages/strings/test/add.spec.ts +++ b/packages/strings/test/add.spec.ts @@ -2,7 +2,6 @@ import { expect } from 'aegir/chai' import { MemoryBlockstore } from 'blockstore-core' -import * as json from 'multiformats/codecs/json' import { identity } from 'multiformats/hashes/identity' import { strings, type Strings } from '../src/index.js' import type { Blockstore } from 'interface-blockstore' @@ -30,12 +29,4 @@ describe('put', () => { expect(`${cid}`).to.equal('bafkqac3imvwgy3zao5xxe3de') }) - - it('adds a string with a non-default block codec', async () => { - const cid = await str.add('hello world', { - codec: json - }) - - expect(`${cid}`).to.equal('bagaaieraxfgspomtju7arjjokll5u7nl7lcij37dpjjyb3uqrd32zyxpzxuq') - }) })