NEARBuilders / near-bos-webcomponent

Embed NEAR BOS content as a web component
The Unlicense
13 stars 6 forks source link

Fixes hot reload socket tests #40

Closed elliotBraem closed 4 months ago

elliotBraem commented 4 months ago

Although hot reload tests were passing, they mocked data incorrectly and so did not reflect the actual implementation. This is fixed now.

Data received from socket server is:

{
    "components": {
        "quickstart.near/widget/deeply.nested.home": {
            "code": "return <p>Hello world</p>;\n"
        },
    },
    "data": {}
}