From 1b9c56a9b976e15c78d4095b7d18e886a216b47c Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Fri, 4 Jul 2025 08:32:51 +0200 Subject: [PATCH] SYNC: fixed data replicator test --- integration-tests/__tests__/data-replicator.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/integration-tests/__tests__/data-replicator.spec.js b/integration-tests/__tests__/data-replicator.spec.js index d03951f9a..d9c089c85 100644 --- a/integration-tests/__tests__/data-replicator.spec.js +++ b/integration-tests/__tests__/data-replicator.spec.js @@ -176,11 +176,11 @@ describe('Data replicator', () => { await queryValue( `select ~is_disabled as ~val from ~auth_methods where ~amoid='790ca4d2-7f01-4800-955b-d691b890cc50'` ) - ).toBeFalsy(); + ).toBeTruthy(); const DB1 = { auth_methods: [ - { id: -1, name: 'Anonymous', amoid: '790ca4d2-7f01-4800-955b-d691b890cc50', is_disabled: 1 }, + { id: -1, name: 'Anonymous', amoid: '790ca4d2-7f01-4800-955b-d691b890cc50', is_disabled: 0 }, { id: 10, name: 'OAuth', amoid: '4269b660-54b6-11ef-a3aa-a9021250bf4b' }, ], auth_methods_config: [{ id: 20, auth_method_id: 10, key: 'oauthClient', value: 'dbgate' }], @@ -266,7 +266,7 @@ describe('Data replicator', () => { await queryValue( `select ~is_disabled as ~val from ~auth_methods where ~amoid='790ca4d2-7f01-4800-955b-d691b890cc50'` ) - ).toBeTruthy(); + ).toEqual('0'); expect(await queryValue(`select count(*) as ~val from ~auth_methods`)).toEqual('3'); expect(await queryValue(`select count(*) as ~val from ~auth_methods_config`)).toEqual('1');