Skip to content

Commit d4d9ab3

Browse files
jsjoeiocode-asher
andauthored
fixup! refactor: use paths.runtime in socket proxyPipe
Co-authored-by: Asher <[email protected]>
1 parent 5946bf3 commit d4d9ab3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/unit/node/util.test.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ describe("getEnvPaths", () => {
55
const actualPaths = getEnvPaths()
66
const expectedProperties = ["data", "config", "runtime"]
77
expectedProperties.forEach((property) => {
8-
// This is a funky way to do it rather than calling hasOwnProperty itself
9-
// We do this because of this eslint rule
10-
// Link: https://eslint.org/docs/rules/no-prototype-builtins
11-
const hasProperty = Object.prototype.hasOwnProperty.call(actualPaths, property)
12-
expect(hasProperty).toBe(true)
8+
expect(actualPaths[property as keyof Paths]).toBeDefined()
139
})
1410
})
1511
})

0 commit comments

Comments
 (0)