Skip to content

Commit

Permalink
Merge pull request #187 from takahirom/fix-bug-Roborazzi-rule-is-ignored
Browse files Browse the repository at this point in the history
Fixed a bug where options set via RoborazziRule were ignored
  • Loading branch information
takahirom authored Oct 19, 2023
2 parents 6e4252b + 2cad24a commit e3da96f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import java.io.File

fun captureRoboImage(
filePath: String = DefaultFileNameGenerator.generateFilePath("png"),
roborazziOptions: RoborazziOptions = RoborazziOptions(),
roborazziOptions: RoborazziOptions = provideRoborazziContext().options,
content: @Composable () -> Unit,
) {
captureRoboImage(
Expand All @@ -26,7 +26,7 @@ fun captureRoboImage(

fun captureRoboImage(
file: File,
roborazziOptions: RoborazziOptions = RoborazziOptions(),
roborazziOptions: RoborazziOptions = provideRoborazziContext().options,
content: @Composable () -> Unit,
) {
if (!roborazziEnabled()) return
Expand Down

0 comments on commit e3da96f

Please sign in to comment.