Skip to content

Commit

Permalink
Remove duplicated capitalize()
Browse files Browse the repository at this point in the history
  • Loading branch information
takashiro committed Jun 26, 2024
1 parent d796cda commit 9651393
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 21 deletions.
3 changes: 1 addition & 2 deletions src/log/ComparatorLogger.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Progress } from '@pixdif/model';
import { Comparator, Action } from '@pixdif/core/Comparator.js';

import capitalize from '../util/capitalize.js';
import capitalize from '@pixdif/core/util/capitalize.js';

function reportProgress(action: string, progress: Progress): void {
if (progress.current === 0) {
Expand Down
10 changes: 0 additions & 10 deletions src/util/capitalize.ts

This file was deleted.

2 changes: 1 addition & 1 deletion test/api/reports.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ it('lists all directories', async () => {
expect(res.statusCode).toBe(200);

const reports: Report[] = res.body;
expect(reports).toHaveLength(3);
expect(reports).toHaveLength(2);
const reportNames: string[] = reports.map((report) => report.name);
expect(reportNames).toContain('api');
});
8 changes: 0 additions & 8 deletions test/util/capitalize.spec.ts

This file was deleted.

0 comments on commit 9651393

Please sign in to comment.