Skip to content

Commit

Permalink
Fix formatting of new obfuscator
Browse files Browse the repository at this point in the history
  • Loading branch information
josacar committed Jul 19, 2024
1 parent 92bf787 commit 74a6fce
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spec/triki_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -719,14 +719,14 @@ describe Triki do

ddo = Triki.new({
"people" => {
"email" => { :type => :email, :skip_regexes => [/^[\w\.\_]+@my_company\.com$/i] },
"crypted_password" => { :type => :fixed, :string => "SOME_FIXED_PASSWORD_FOR_EASE_OF_DEBUGGING" },
"bank_account" => { :type => :fixed, :string => ->(row : Triki::RowAsHash) { "#{row["bank_account"].to_s[0..4]}#{"*" * (row["email"].to_s.size - 5)}".as(Triki::RowContent) } },
"name" => :name,
"full_address" => :address,
"bio" => { :type => :lorem, :number => 4 },
"relationship_status" => { :type => :fixed, :one_of => ["Single", "Divorced", "Married", "Engaged", "In a Relationship"] },
}
"email" => {:type => :email, :skip_regexes => [/^[\w\.\_]+@my_company\.com$/i]},
"crypted_password" => {:type => :fixed, :string => "SOME_FIXED_PASSWORD_FOR_EASE_OF_DEBUGGING"},
"bank_account" => {:type => :fixed, :string => ->(row : Triki::RowAsHash) { "#{row["bank_account"].to_s[0..4]}#{"*" * (row["email"].to_s.size - 5)}".as(Triki::RowContent) }},
"name" => :name,
"full_address" => :address,
"bio" => {:type => :lorem, :number => 4},
"relationship_status" => {:type => :fixed, :one_of => ["Single", "Divorced", "Married", "Engaged", "In a Relationship"]},
},
})

output = IO::Memory.new
Expand Down

0 comments on commit 74a6fce

Please sign in to comment.