Skip to content

Commit 9aac9c7

Browse files
committed
Formatting
2 parents eb37c9a + 7ee5d23 commit 9aac9c7

File tree

7 files changed

+3172
-3521
lines changed

7 files changed

+3172
-3521
lines changed

.github/workflows/linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
- name: Lint Codebase
4040
id: super-linter
41-
uses: super-linter/super-linter/slim@4e8a7c2bf106c4c766c816b35ec612638dc9b6b2
41+
uses: super-linter/super-linter/slim@12150456a73e248bdc94d0794898f94e23127c88
4242
env:
4343
DEFAULT_BRANCH: main
4444
FILTER_REGEX_EXCLUDE: dist/**/*

.licenses/npm/undici.dep.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: undici
3-
version: 5.28.5
3+
version: 5.29.0
44
type: npm
55
summary: An HTTP/1.1 client, written from scratch for Node.js
66
homepage: https://undici.nodejs.org

__tests__/main.test.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,18 @@ function mockFileContent(
5050
nonExistentFiles: string[] = []
5151
): void {
5252
// Mock existsSync to return true for files that exist, false for those that don't
53-
mockExistsSync.mockImplementation(function (this: any, path: any): boolean {
53+
mockExistsSync.mockImplementation((...args: unknown[]): boolean => {
54+
const [path] = args as [string]
5455
if (nonExistentFiles.includes(path)) {
5556
return false
5657
}
5758
return path in fileContents || true
5859
})
5960

6061
// Mock readFileSync to return the content for known files
61-
mockReadFileSync.mockImplementation(function (
62-
this: any,
63-
path: any,
64-
encoding: any
65-
): string {
66-
if (encoding === 'utf-8' && path in fileContents) {
62+
mockReadFileSync.mockImplementation((...args: unknown[]): string => {
63+
const [path, options] = args as [string, BufferEncoding]
64+
if (options === 'utf-8' && path in fileContents) {
6765
return fileContents[path]
6866
}
6967
throw new Error(`Unexpected file read: ${path}`)
@@ -126,6 +124,7 @@ describe('main.ts', () => {
126124

127125
await run()
128126

127+
expect(core.setOutput).toHaveBeenCalled()
129128
verifyStandardResponse()
130129
})
131130

badges/coverage.svg

Lines changed: 1 addition & 1 deletion
Loading

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)