Skip to content

Commit

Permalink
Remove dangling 'cleaned' variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jsamr committed Nov 13, 2022
1 parent 1443777 commit a0f5e31
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/types.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,14 +274,6 @@ test('cleanEnv', () => {

expectTypeOf(cleanEnv(env, specs)).toMatchTypeOf<TestedCleanedEnv>()

const cleaned = cleanEnv(env, {
JSON_ANY: json(),
JSON_REQ_ANY: json({ default: {} as any }),
JSON_DEFAULT: json({ default: { foo: 'bar' } }),
JSON_DEV_DEFAULT: json({ devDefault: { foo: 'bar' } }),
JSON_DEFAULT_OPT: json<{ foo: 'bar' }>({ default: undefined }),
})

// Should also work when specs inlined
expectTypeOf(
cleanEnv(env, {
Expand Down

0 comments on commit a0f5e31

Please sign in to comment.