fix(operators-js): Update buildJs.test.js.

This commit is contained in:
Gerrie van Wyk 2024-04-19 12:15:49 +02:00 committed by GitHub
parent 78f133c96e
commit 36767ea1f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: {},