mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-23 14:40:27 +01:00
* chore: 🔧 remove client * chore: 🔧 change cookie name * chore: 🔧 remove auth param * chore: 🔧 remove auth components * chore: 🔧 add getaccount query * fix: 🐛 tests * chore: 🔧 get account * chore: 🔧 status check * chore: 🔧 remove log * chore: 🔧 update apollo client * refactor: ♻️ server side props * chore: 🔧 ssr queries * chore: 🔧 more ssr queries * chore: 🔧 type check * chore: 🔧 increase nodeinfo limit Co-authored-by: apotdevin <apotdevincab@gmail.com>
33 lines
805 B
TypeScript
33 lines
805 B
TypeScript
import testServer from 'server/tests/testServer';
|
|
import { gql } from '@apollo/client';
|
|
|
|
jest.mock('ln-service');
|
|
|
|
describe('Chain Resolvers', () => {
|
|
test('getChainBalance', async () => {
|
|
const getChainBalance = gql`
|
|
query {
|
|
getChainBalance
|
|
}
|
|
`;
|
|
const { query } = testServer();
|
|
const res = await query({
|
|
query: getChainBalance,
|
|
});
|
|
expect(res.errors).toBe(undefined);
|
|
expect(res).toMatchSnapshot();
|
|
});
|
|
test('getPendingChainBalance', async () => {
|
|
const getPendingChainBalance = gql`
|
|
query {
|
|
getPendingChainBalance
|
|
}
|
|
`;
|
|
const { query } = testServer();
|
|
const res = await query({
|
|
query: getPendingChainBalance,
|
|
});
|
|
expect(res.errors).toBe(undefined);
|
|
expect(res).toMatchSnapshot();
|
|
});
|
|
});
|