We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5946bf3 commit d4d9ab3Copy full SHA for d4d9ab3
test/unit/node/util.test.ts
@@ -5,11 +5,7 @@ describe("getEnvPaths", () => {
5
const actualPaths = getEnvPaths()
6
const expectedProperties = ["data", "config", "runtime"]
7
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)
+ expect(actualPaths[property as keyof Paths]).toBeDefined()
13
})
14
15
0 commit comments