Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrohdezma committed Nov 6, 2024
1 parent ec6c275 commit f64d997
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,18 @@ class TypeTokenSuite extends CatsEffectSuite with Http4sMUnitSyntax {
assertIO(result, AccessToken.noop)
}

final case class Config(tokenType: TokenType)

implicit val ConfigConfigReader: ConfigReader[Config] = ConfigReader.forProduct1("token-type")(Config.apply)

def fixture(resource: String) = ResourceFunFixture {
Resource.make {
IO(sys.props("user.home")).flatTap(_ => IO(sys.props.put("user.home", getClass.getResource(resource).getPath())))
}(userHome => IO(sys.props.put("user.home", userHome)).void)
}

}

final case class Config(tokenType: TokenType)

object Config {

implicit val ConfigConfigReader: ConfigReader[Config] = ConfigReader.forProduct1("token-type")(Config.apply)

}

0 comments on commit f64d997

Please sign in to comment.