Allow Trace
to accept a Future
as its data source
#211
Annotations
6 errors
|
tests/Future.test.ts#L91
AssertionError: expected { type: 'trace', …(3) } to deeply equal { type: 'trace', …(2) }
- Expected
+ Received
Object {
"op_stack": Array [
Object {
"accessor": "attr",
"future_id": null,
"key": "a",
},
Object {
"accessor": "item",
"future_id": null,
"key": 1,
},
Object {
"accessor": "attr",
"future_id": "123",
"key": null,
},
Object {
"accessor": "item",
"future_id": "456",
"key": null,
},
],
+ "origin_future_id": null,
"origin_node_id": "NodeId",
"type": "trace",
}
❯ tests/Future.test.ts:91:28
|
tests/Node.test.ts#L46
AssertionError: expected Set{ FutureAnyObject{ …(2) }, …(5) } to deeply equal Set{ FutureAnyObject{ …(2) }, …(2) }
- Expected
+ Received
Set {
Object {
"directive": Object {
"op_stack": Array [
Object {
"accessor": "attr",
"future_id": null,
"key": "x",
},
],
- "origin_future_id": "future5_gaSC-sJq",
+ "origin_future_id": "future9_otIjMkky",
"origin_node_id": null,
"type": "trace",
},
- "id": "future6_j2sThwAo",
+ "id": "future10_ErEFMfrz",
+ },
+ Object {
+ "directive": Object {
+ "op_stack": Array [],
+ "origin_future_id": null,
+ "origin_node_id": "b",
+ "type": "trace",
+ },
+ "id": "future9_otIjMkky",
},
Object {
"directive": Object {
"op_stack": Array [
Object {
"accessor": "attr",
"future_id": null,
- "key": "y",
+ "key": "x",
},
],
- "origin_future_id": "future7_B88oqOT6",
+ "origin_future_id": "future5_gaSC-sJq",
"origin_node_id": null,
"type": "trace",
},
- "id": "future8_p1e2BdAw",
+ "id": "future6_j2sThwAo",
+ },
+ Object {
+ "directive": Object {
+ "op_stack": Array [],
+ "origin_future_id": null,
+ "origin_node_id": "a",
+ "type": "trace",
+ },
+ "id": "future5_gaSC-sJq",
},
Object {
"directive": Object {
"op_stack": Array [
Object {
"accessor": "attr",
"future_id": null,
- "key": "x",
+ "key": "y",
},
],
- "origin_future_id": "future9_otIjMkky",
+ "origin_future_id": "future7_B88oqOT6",
"origin_node_id": null,
"type": "trace",
},
- "id": "future10_ErEFMfrz",
+ "id": "future8_p1e2BdAw",
+ },
+ Object {
+ "directive": Object {
+ "op_stack": Array [],
+ "origin_future_id": null,
+ "origin_node_id": "a",
+ "type": "trace",
+ },
+ "id": "future7_B88oqOT6",
},
}
❯ tests/Node.test.ts:46:21
|
tests/Substrate.test.ts#L19
AssertionError: expected { …(4) } to deeply equal { edges: [], initial_args: {}, …(2) }
- Expected
+ Received
Object {
"edges": Array [],
"futures": Array [
Object {
"directive": Object {
"op_stack": Array [
Object {
"accessor": "attr",
"future_id": null,
"key": "x",
},
],
+ "origin_future_id": "future1_CSnOtQ19",
+ "origin_node_id": null,
+ "type": "trace",
+ },
+ "id": StringMatching /future/,
+ },
+ Object {
+ "directive": Object {
+ "op_stack": Array [],
+ "origin_future_id": null,
"origin_node_id": "a",
"type": "trace",
},
"id": StringMatching /future/,
},
Object {
"directive": Object {
"items": Array [
Object {
"future_id": null,
"val": "x",
},
Object {
"future_id": null,
"val": "y",
},
],
"type": "string-concat",
},
- "id": StringMatching /future/,
+ "id": "future3_-40EyLmP",
},
],
"initial_args": Object {},
"nodes": Array [
Object {
"_should_output_globally": true,
"args": Object {
"a": 123,
},
"id": "a",
"node": "FooNode",
},
Object {
"_should_output_globally": true,
"args": Object {
"b": Object {
"__$$SB_GRAPH_OP_ID$$__": StringMatching /future/,
},
"c": Object {
"__$$SB_GRAPH_OP_ID$$__": StringMatching /future/,
},
},
"id": "b",
"node": "FooNode",
},
],
}
❯ tests/Substrate.test.ts:19:22
|
tests/Substrate.test.ts#L87
AssertionError: expected { nodes: [ { …(4) }, { …(4) } ], …(3) } to deeply equal { edges: [], initial_args: {}, …(2) }
- Expected
+ Received
Object {
"edges": Array [],
"futures": Array [
Object {
"directive": Object {
"op_stack": Array [
Object {
"accessor": "attr",
"future_id": null,
"key": "x",
},
],
+ "origin_future_id": "future4_GRG2lbhp",
+ "origin_node_id": null,
+ "type": "trace",
+ },
+ "id": StringMatching /future/,
+ },
+ Object {
+ "directive": Object {
+ "op_stack": Array [],
+ "origin_future_id": null,
"origin_node_id": "node1_bH7Feue6",
"type": "trace",
},
"id": StringMatching /future/,
},
Object {
"directive": Object {
"items": Array [
Object {
"future_id": null,
"val": "x",
},
Object {
"future_id": null,
"val": "y",
},
],
"type": "string-concat",
},
- "id": StringMatching /future/,
+ "id": "future6_xjUtZYSq",
},
],
"initial_args": Object {},
"nodes": Array [
Object {
"_should_output_globally": true,
"args": Object {
"b": Object {
"__$$SB_GRAPH_OP_ID$$__": StringMatching /future/,
},
"c": Object {
"__$$SB_GRAPH_OP_ID$$__": StringMatching /future/,
},
},
"id": "node2_3uvwOPAQ",
"node": "FooNode",
},
Object {
"_should_output_globally": true,
"args": Object {
"a": 123,
},
"id": "node1_bH7Feue6",
"node": "FooNode",
},
],
}
❯ tests/Substrate.test.ts:87:22
|
|
This job failed
Loading