Skip to content

Commit

Permalink
fix placeholder tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mauberti-bc committed Mar 5, 2024
1 parent bdcc25a commit d772e39
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/src/paths/taxonomy/taxon/tsn/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe('tsn', () => {
sinon.stub(db, 'getDBConnection').returns(dbConnectionObj);

const mock1 = { tsn: '1', commonNames: ['something'], scientificName: 'string' } as unknown as any;
const mock2 = { tsn: '2', commonNames: null, scientificName: 'string' } as unknown as any;
const mock2 = { tsn: '2', commonNames: [], scientificName: 'string' } as unknown as any;

const getTaxonByTsnIdsStub = sinon.stub(TaxonomyService.prototype, 'getTaxonByTsnIds').resolves([mock1, mock2]);

Expand Down
2 changes: 1 addition & 1 deletion api/src/services/itis-service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import axios from 'axios';
import { sortExactMatches } from '../utils/itis';
import { sortExactMatches } from '../utils/itis-sort';
import { getLogger } from '../utils/logger';
import { TaxonSearchResult } from './taxonomy-service';

Expand Down
3 changes: 3 additions & 0 deletions api/src/utils/itis-sort.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// TODO
export const placeholder = () => {}

Check failure on line 2 in api/src/utils/itis-sort.test.ts

View workflow job for this annotation

GitHub Actions / Running Linter and Formatter

Unexpected empty arrow function

Check warning on line 2 in api/src/utils/itis-sort.test.ts

View workflow job for this annotation

GitHub Actions / Running Linter and Formatter

Insert `;`
// describe('itis-sort', () => {});
File renamed without changes.
1 change: 0 additions & 1 deletion api/src/utils/itis.test.ts

This file was deleted.

0 comments on commit d772e39

Please sign in to comment.