Files
Jinho Jang 89df4a5048 Migrate community curation dapp into status-web monorepo (#1077)
* feat: migrate community dapp

* fix: change server protocol from https to http in webpack config

* fix: update build script in package.json and add output directory to turbo.json

* fix: update CI workflow to initialize git submodules recursively and add Foundry installation step

* chore: change from community to community-dapp

* feat: add global type declarations for wallet and API integration

* fix: correct syntax for not-first-child selector in Card component

* fix(wallet): use type-safe globalThis cast instead of direct property assignment

* fix(community-dapp): fix eslint FlatCompat config and include test files in tsconfig

* fix(ci): fix forge test args and disable broken community-dapp tests

* fix(community-dapp): resolve @libp2p/interface to v2.10.4 for webpack build

* fix: add @libp2p/interface as missing dependency for @waku packages via packageExtensions

* fix: address PR review feedback

* fix(wallet): restore type-safe globalThis cast for CI build

* fix: commit ABI artifacts and add vercel.json for SPA routing

* fix(community-dapp): add 404.html for SPA routing on Vercel

* fix(community-dapp): simplify vercel.json to rewrites only

* fix(community-dapp): update vercel.json with build and output configurations

* fix: add Foundry dependencies to .gitignore
2026-03-31 23:27:42 +09:00

18 lines
677 B
TypeScript

import { expect } from 'chai'
import { getCommunityDetailsSync } from '../src/helpers/apiMock'
import { communities } from '../src/helpers/apiMockData'
describe('getCommunityDetails', () => {
it('success', async () => {
expect(getCommunityDetailsSync('0x0d9cb350e1dc415303e2816a21b0a439530725b4b2b42d2948e967cb211eab89d5')).to.deep.eq(
communities[0],
)
})
it('gets different community', async () => {
expect(getCommunityDetailsSync('0x9ac2b2e23eb62fa70fc7f31c0895ac46230c241e')).to.deep.eq(communities[1])
})
it('empty', async () => {
expect(getCommunityDetailsSync('0xabA1eF51ef4bc360a9e8C9aD2d787330B6q2eb24')).to.deep.eq(undefined)
})
})