Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Jul 6, 2022
1 parent 7dd46b3 commit 349e368
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/util/fs/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('util/fs/index', () => {
${'..'} | ${''}
${'./foo'} | ${'.'}
${'../foo'} | ${'..'}
`(`getParentDir('$dir') === '$expected'`, ({ dir, expected }) => {
`(`('$dir') -> '$expected'`, ({ dir, expected }) => {
expect(getParentDir(dir)).toBe(expected);
});
});
Expand All @@ -58,12 +58,9 @@ describe('util/fs/index', () => {
${'foo'} | ${'baz'} | ${'baz'}
${'./foo'} | ${'baz'} | ${'baz'}
${'../foo'} | ${'baz'} | ${'../baz'}
`(
`getSiblingFileName('$file', '$sibling') === '$expected'`,
({ file, sibling, expected }) => {
expect(getSiblingFileName(file, sibling)).toBe(expected);
}
);
`(`('$file', '$sibling') -> '$expected'`, ({ file, sibling, expected }) => {
expect(getSiblingFileName(file, sibling)).toBe(expected);
});
});

describe('readLocalFile', () => {
Expand Down
7 changes: 7 additions & 0 deletions lib/zod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { z } from 'zod';

z.object({
enabled: z.boolean({
description: `Enable or disable Renovate bot.`,
}),
});

0 comments on commit 349e368

Please sign in to comment.