Skip to content

Commit

Permalink
refactor: fix typing issue found by eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
senyai committed Aug 4, 2024
1 parent d782cda commit a249dcf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/openedRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ export type FossilRemoteName = Distinct<string, 'Fossil Remote Name'>;
/** https://fossil-scm.org/home/doc/trunk/www/checkin_names.wiki */
export type FossilBranch = Distinct<string, 'Fossil Branch Name'>;
/** https://fossil-scm.org/home/doc/trunk/www/checkin_names.wiki#special */
const FossilSpecialTagsList = ['current', 'parent', 'tip'] as const;
export type FossilSpecialTags = (typeof FossilSpecialTagsList)[number];
export type FossilSpecialTags = 'current' | 'parent' | 'tip';
export type FossilTag = Distinct<string, 'Fossil Tag Name'> | 'closed';
export type FossilHash = Distinct<string, 'Fossil SHA Hash'>;
export type FossilCheckin =
Expand Down
2 changes: 0 additions & 2 deletions src/test/suite/commandSuites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ export function CleanSuite(this: Suite): void {
{ modal: true },
'&&Delete Files'
);
sinon.assert.calledOnceWithExactly;
sinon.assert.calledOnceWithMatch(cleanCallStub, [
'clean',
...repository.untrackedGroup.resourceStates.map(
Expand Down Expand Up @@ -362,7 +361,6 @@ export function CleanSuite(this: Suite): void {
{ modal: true },
'&&Delete Files'
);
sinon.assert.calledOnceWithExactly;
sinon.assert.calledOnceWithMatch(cleanCallStub, [
'clean',
...repository.untrackedGroup.resourceStates.map(
Expand Down
6 changes: 3 additions & 3 deletions src/test/suite/qualityOfLifeSuite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { commands, window, workspace, Uri } from 'vscode';
import * as assert from 'assert/strict';
import * as fs from 'fs/promises';
import * as vscode from 'vscode';
import { languages } from 'vscode';
import type { languages } from 'vscode';
import * as sinon from 'sinon';
import { add, getRepository } from './common';
import { OpenedRepository } from '../../openedRepository';
import { LineChange } from '../../revert';
import type { OpenedRepository } from '../../openedRepository';
import type { LineChange } from '../../revert';
import { delay } from '../../util';

function PraiseSuite(this: Suite) {
Expand Down
3 changes: 2 additions & 1 deletion src/test/summaryAsMarkdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,6 @@ async function main(
main(...process.argv.slice(2))
.then(code => process.exit(code))
.catch(reason => {
console.log(reason), process.exit(1);
console.log(reason);
process.exit(1);
});

0 comments on commit a249dcf

Please sign in to comment.