Skip to content

Error on the stellar.test.ts #87

@human-77

Description

@human-77

The variable STELLAR_TOOLS_NAMES hasn't been updated properly, so the tests run with an error:

 FAIL  __tests__/contracts/stellar.test.ts
  ● Console

    console.log
      Received GET MCP request

      at Object.log (node_modules/mcp-handler/dist/index.js:120:17)

  ● Server should initialize a client session and serve Stellar tools

    expect(received).toEqual(expected) // deep equality

    Expected: ArrayContaining ["stellar-fungible", "stellar-governor", "stellar-stablecoin", "stellar-non-fungible"]
    Received: ["stellar-fungible", "stellar-non-fungible", "stellar-stablecoin"]

      69 |   const toolsNames = toolsList.map((tool) => tool.name);
      70 |   expect(toolsNames).toEqual(expect.arrayContaining(STELLAR_TOOLS_NAMES));
    > 71 |   expect(STELLAR_TOOLS_NAMES).toEqual(expect.arrayContaining(toolsNames));
         |                               ^
      72 | });
      73 |

      at Object.toEqual (__tests__/contracts/stellar.test.ts:71:31)

I corrected in this commit and added to this pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions