Skip to content

Commit

Permalink
test(strings): remove custom codec from add spec
Browse files Browse the repository at this point in the history
  • Loading branch information
tabcat committed Dec 6, 2024
1 parent 2a0dd01 commit 1ea4be8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/strings/test/add.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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')
})
})

0 comments on commit 1ea4be8

Please sign in to comment.