Skip to content

Commit

Permalink
Update helper signature in memory node tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelBCarter committed Dec 18, 2024
1 parent b35b4e4 commit b0f596e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ describe('MemoryNode', () => {
expect(prettyPrintDescription(description)).toMatchSnapshot()
})
it('clone-all', async () => {
const newNode = await MemoryNodeHelper.attachToNewNode(node, '*')
const newNode = await MemoryNodeHelper.attachToNewNode(node, '*', { config: { schema: NodeConfigSchema } })
const newNodeChildren = await newNode.publicChildren()
const nodeChildren = await node.publicChildren()
expect(newNodeChildren.length).toEqual(nodeChildren.length)
Expand All @@ -322,7 +322,7 @@ describe('MemoryNode', () => {
await node.register(mod)
await node.attach(mod.address, true)

const newNode = await MemoryNodeHelper.attachToNewNode(node, 'CloneModule')
const newNode = await MemoryNodeHelper.attachToNewNode(node, 'CloneModule', { config: { schema: NodeConfigSchema } })
const newNodeChild = await newNode.resolve('CloneModule')
const nodeChild = await node.resolve('CloneModule', { maxDepth: 1 })
expect(newNodeChild?.id).toEqual(nodeChild?.id)
Expand All @@ -336,7 +336,7 @@ describe('MemoryNode', () => {

try {
// this should except
await MemoryNodeHelper.attachToNewNode(node, 'CloneModulePrivate')
await MemoryNodeHelper.attachToNewNode(node, 'CloneModulePrivate', { config: { schema: NodeConfigSchema } })
expect(false).toBeTrue()
} catch (e) {
expect(e).toBeInstanceOf(Error)
Expand Down

0 comments on commit b0f596e

Please sign in to comment.