Skip to content

Unable to add unit tests to for http in / http response (404 errors) #53

@Steve-Mcl

Description

@Steve-Mcl

Originally raised in node-red/3489

Current Behaviour

I am looking at adding unit tests for the HTTP-In and HTTP-Response nodes (before I add a new feature).
I have the bones of it working but the HTTP-In Node never gets called (the test always errors with a 404)

REF: https://node-red.slack.com/archives/C9RSU6S56/p1646839765269019

Expected Behavior

To be able to call Endpoint so that HTTP In Node Unit Tests can be added to node-red

Steps To Reproduce

Add test flow with http in node
Call endpoint with got or fetch or browser - instant 404

Environment

Node-RED version: 2.2.2
Node.js version: 14
npm version: na
Platform/OS: na
Browser: na

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions