diff --git a/packages/integrations/tests/unit-tests/integrator.ts b/packages/integrations/tests/unit-tests/integrator.ts new file mode 100644 index 0000000..d2f8503 --- /dev/null +++ b/packages/integrations/tests/unit-tests/integrator.ts @@ -0,0 +1,16 @@ + +import { expect, test } from '@jest/globals'; +import { Integrator } from '../../src'; + +const { npm_config_API_KEY: API_KEY, npm_config_DATASET_ID: DATASET_ID, npm_config_SERVER_URL: SERVER_URL } = process.env; + +const integrator = new Integrator(DATASET_ID!, API_KEY!, { serverUrl: SERVER_URL }); + +test('Batch size', async() => { + expect(integrator.batchSize).toBe(1_000); +}); + +test('Batch size', async() => { + integrator.batchSize = 2; + expect(integrator.batchSize).toBe(2); +}); \ No newline at end of file