Skip to content

Commit

Permalink
add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mzanoni committed Nov 10, 2023
1 parent 0fea9fa commit 63982cd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/integrations/tests/unit-tests/integrator.ts
Original file line number Diff line number Diff line change
@@ -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);
});

0 comments on commit 63982cd

Please sign in to comment.