Skip to content

Commit

Permalink
Prettier and helper script to format the project
Browse files Browse the repository at this point in the history
  • Loading branch information
steveukx committed Mar 9, 2024
1 parent 91be7c7 commit 6883522
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.md
.changeset
.yarn
dist
coverage
node_modules
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"build": "lerna run build",
"clean": "git clean -fxd -e .idea -e node_modules -e .yarn",
"clean:cache": "git clean -fxd .yarn node_modules packages simple-git",
"format": "prettier --write .",
"test": "lerna run test"
},
"dependencies": {
Expand Down
13 changes: 9 additions & 4 deletions simple-git/test/integration/log-numstat.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ import { newSimpleGit } from '@simple-git/test-utils';

describe('log-numstat', function () {
it('custom format and date range should not fail when also setting numstat', async () => {
const ac = new AbortController()
const ac = new AbortController();
const log = newSimpleGit(__dirname, {
abort: ac.signal,
}).log({ format: {
}).log({
'format': {
H: '%H',
h: '%h',
P: '%P',
Expand All @@ -16,8 +17,12 @@ describe('log-numstat', function () {
D: '%D',
b: '%b',
an: '%an',
ae: '%ae'
}, '--all': null, '--since': '2024-02-04', '--numstat': null});
ae: '%ae',
},
'--all': null,
'--since': '2024-02-04',
'--numstat': null,
});

setTimeout(() => ac.abort(), 500);

Expand Down

0 comments on commit 6883522

Please sign in to comment.