Skip to content

Commit

Permalink
test: update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-yarmosh committed Jan 22, 2025
1 parent 87537a7 commit d6d0d73
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/tests/unit/override/adopted-probes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,6 @@ describe('AdoptedProbes', () => {
});

it('getUpdatedLocation method should return updated location', async () => {
delete process.env['SHOULD_SYNC_ADOPTIONS'];
const adoptedProbes = new AdoptedProbes(sqlStub, getProbesWithAdminData);
sql.select.resolves([{
...defaultAdoptedProbe,
Expand Down Expand Up @@ -796,7 +795,6 @@ describe('AdoptedProbes', () => {
});

it('getUpdatedLocation method should return null if connected.country !== adopted.countryOfCustomCity', async () => {
delete process.env['SHOULD_SYNC_ADOPTIONS'];
const adoptedProbes = new AdoptedProbes(sqlStub, getProbesWithAdminData);
sql.select.resolves([{
...defaultAdoptedProbe,
Expand All @@ -814,7 +812,6 @@ describe('AdoptedProbes', () => {
});

it('getUpdatedLocation method should return null if "isCustomCity: false"', async () => {
delete process.env['SHOULD_SYNC_ADOPTIONS'];
const adoptedProbes = new AdoptedProbes(sqlStub, getProbesWithAdminData);
sql.select.resolves([{
...defaultAdoptedProbe,
Expand All @@ -830,7 +827,6 @@ describe('AdoptedProbes', () => {
});

it('getUpdatedTags method should return same tags array', async () => {
delete process.env['SHOULD_SYNC_ADOPTIONS'];
const adoptedProbes = new AdoptedProbes(sqlStub, getProbesWithAdminData);
sql.select.resolves([{ ...defaultAdoptedProbe, tags: '[]' }]);

Expand All @@ -840,7 +836,6 @@ describe('AdoptedProbes', () => {
});

it('getUpdatedTags method should return user tags', async () => {
delete process.env['SHOULD_SYNC_ADOPTIONS'];
const adoptedProbes = new AdoptedProbes(sqlStub, getProbesWithAdminData);

await adoptedProbes.syncDashboardData();
Expand All @@ -852,7 +847,6 @@ describe('AdoptedProbes', () => {
});

it('getUpdatedTags method should include user tag if public_probes: true', async () => {
delete process.env['SHOULD_SYNC_ADOPTIONS'];
const adoptedProbes = new AdoptedProbes(sqlStub, getProbesWithAdminData);
sql.select.resolves([{ ...defaultAdoptedProbe, tags: '[]', publicProbes: 1 }]);

Expand Down

0 comments on commit d6d0d73

Please sign in to comment.