Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Leblow committed Nov 29, 2023
1 parent 8033b2e commit fafe693
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import { LocalDbService } from '../../local-db/local-db.service'
import { TestConfig } from '../../const'

const createOrbitDbInstance = async () => {
const ipfs: IPFS = await create()
// @ts-ignore
const orbitDb = await OrbitDB.createInstance(ipfs, {
directory: TestConfig.ORBIT_DB_DIR,
})
const ipfs: IPFS = await create()
// @ts-ignore
const orbitDb = await OrbitDB.createInstance(ipfs, {
directory: TestConfig.ORBIT_DB_DIR,
})

return { orbitDb, ipfs }
return { orbitDb, ipfs }
}

const mockLocalDbService = { putOwnerOrbitDbIdentity: jest.fn(), getOwnerOrbitDbIdentity: jest.fn(() => 'theOwnerId') }
Expand Down Expand Up @@ -72,7 +72,7 @@ describe('CommmunityMetadataStore/updateCommunityMetadata', () => {
{
...mockLocalDbService,
// @ts-ignore - OrbitDB's type definition doesn't include identity
getOwnerOrbitDbIdentity: jest.fn(() => orbitDb.identity.id)
getOwnerOrbitDbIdentity: jest.fn(() => orbitDb.identity.id),
} as unknown as LocalDbService,
mockEmitter as unknown as EventEmitter
)
Expand All @@ -93,7 +93,7 @@ describe('CommmunityMetadataStore/updateCommunityMetadata', () => {
// We are using an actual instance of OrbitDb in this case, so we
// can use the actual identity.
// @ts-ignore - OrbitDB's type definition doesn't include identity
const expected = {...metaValidWithOwnerId, ownerOrbitDbIdentity: orbitDb.identity.id}
const expected = { ...metaValidWithOwnerId, ownerOrbitDbIdentity: orbitDb.identity.id }

expect(ret).toStrictEqual(expected)
expect(meta).toStrictEqual(expected)
Expand Down

0 comments on commit fafe693

Please sign in to comment.