chore(8.0): final pre-RC1 sweep — API consistency, named errors, orphans, zero-cast codebase
This commit is contained in:
parent
970e08c466
commit
1f7e365a4e
237 changed files with 1951 additions and 49413 deletions
|
|
@ -71,7 +71,7 @@ describe('Transactions + Sharding Integration', () => {
|
|||
// Verify all entities exist
|
||||
const entity1 = await brain.get(id1)
|
||||
const entity2 = await brain.get(id2)
|
||||
const relations = await brain.getRelations({ from: id1 })
|
||||
const relations = await brain.related({ from: id1 })
|
||||
|
||||
expect(entity1).toBeTruthy()
|
||||
expect(entity2).toBeTruthy()
|
||||
|
|
@ -213,9 +213,9 @@ describe('Transactions + Sharding Integration', () => {
|
|||
})
|
||||
|
||||
// Verify all relationships exist
|
||||
const relations0 = await brain.getRelations({ from: entities[0].id })
|
||||
const relations1 = await brain.getRelations({ from: entities[1].id })
|
||||
const relations2 = await brain.getRelations({ from: entities[2].id })
|
||||
const relations0 = await brain.related({ from: entities[0].id })
|
||||
const relations1 = await brain.related({ from: entities[1].id })
|
||||
const relations2 = await brain.related({ from: entities[2].id })
|
||||
|
||||
expect(relations0).toHaveLength(1)
|
||||
expect(relations1).toHaveLength(1)
|
||||
|
|
@ -249,7 +249,7 @@ describe('Transactions + Sharding Integration', () => {
|
|||
})
|
||||
|
||||
// Delete first entity (should also delete relationship)
|
||||
await brain.delete(id1)
|
||||
await brain.remove(id1)
|
||||
|
||||
// Verify entity deleted from shard G
|
||||
const entity1 = await brain.get(id1)
|
||||
|
|
@ -260,7 +260,7 @@ describe('Transactions + Sharding Integration', () => {
|
|||
expect(entity2).toBeTruthy()
|
||||
|
||||
// Relationship should be deleted
|
||||
const relations = await brain.getRelations({ from: id1 })
|
||||
const relations = await brain.related({ from: id1 })
|
||||
expect(relations).toHaveLength(0)
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue