Skip to content

Commit 5ec85f3

Browse files
committed
fix tests
1 parent aa1b5e8 commit 5ec85f3

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

packages/hypergraph-react/test/HypergraphSpaceContext.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('HypergraphSpaceContext', () => {
6161
const spaceId = '1e5e39da-a00d-4fd8-b53b-98095337112f';
6262

6363
let repo = new Repo({});
64-
const queryClient = new QueryClient();
64+
let queryClient = new QueryClient();
6565
const createWrapper =
6666
() =>
6767
({ children }: Readonly<{ children: React.ReactNode }>) => (
@@ -76,6 +76,8 @@ describe('HypergraphSpaceContext', () => {
7676

7777
beforeEach(() => {
7878
repo = new Repo({});
79+
queryClient = new QueryClient();
80+
store.send({ type: 'reset' });
7981
store.send({ type: 'setRepo', repo });
8082
store.send({
8183
type: 'setSpace',

packages/hypergraph/src/entity/findMany.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ const subscribeToDocumentChanges = (handle: DocHandle<DocumentContent>) => {
101101
console.error('error', error);
102102
}
103103

104-
console.log('decoded', decoded);
105-
106104
if (oldDecodedEntry) {
107105
// collect all the Ids for relation entries in the `oldDecodedEntry`
108106
const deletedRelationIds = new Set<string>();

packages/hypergraph/test/entity/entity.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ describe('Entity', () => {
137137
name: 'Test Updated',
138138
age: 2112,
139139
__schema: Person,
140+
__deleted: false,
140141
});
141142

142143
const updatedEntities = Entity.findMany(handle, Person, undefined, undefined);

0 commit comments

Comments
 (0)