mirror of
https://github.com/lowdefy/lowdefy.git
synced 2024-11-27 05:12:31 +08:00
fix(operators-js): Update buildJs.test.js.
This commit is contained in:
parent
78f133c96e
commit
36767ea1f9
@ -111,9 +111,9 @@ test('buildJs connection functions', async () => {
|
||||
{ id: 'c', requests: [] },
|
||||
],
|
||||
connections: [
|
||||
{ id: 'c_a', style: { _js: 'return 3;' } },
|
||||
{ id: 'c_b', style: { _js: 'return 10;' } },
|
||||
{ id: 'c_c', style: { _js: 'return 3;' } },
|
||||
{ id: 'c_a', properties: { _js: 'return 3;' } },
|
||||
{ id: 'c_b', properties: { _js: 'return 10;' } },
|
||||
{ id: 'c_c', properties: { _js: 'return 3;' } },
|
||||
],
|
||||
};
|
||||
|
||||
@ -124,6 +124,11 @@ test('buildJs connection functions', async () => {
|
||||
{ id: 'b', requests: [] },
|
||||
{ id: 'c', requests: [] },
|
||||
]);
|
||||
expect(components.connections).toEqual([
|
||||
{ id: 'c_a', properties: { _js: 'WtH5rMtQ+z9CJ4qYRnNWpIpRrnk=' } },
|
||||
{ id: 'c_b', properties: { _js: 'h4uNNgee8PnSsXJuEXZQ7FSbnZY=' } },
|
||||
{ id: 'c_c', properties: { _js: 'WtH5rMtQ+z9CJ4qYRnNWpIpRrnk=' } },
|
||||
]);
|
||||
|
||||
expect(context.jsMap).toEqual({
|
||||
client: {},
|
||||
|
Loading…
Reference in New Issue
Block a user