Skip to content

Fix faker helper returning a SafeString#701

Merged
255kb merged 1 commit intomainfrom
fix/699-faker-safestring
May 5, 2022
Merged

Fix faker helper returning a SafeString#701
255kb merged 1 commit intomainfrom
fix/699-faker-safestring

Conversation

@255kb
Copy link
Member

@255kb 255kb commented May 4, 2022

-Make the Faker wrapper returns the actual faker's function value (string, number, etc.). Like this, the faker helper is compatible with other helpers that needs other things than strings (int, if, etc.)
Closes #699

Technical implementation details

Checklist

  • data migration added (@mockoon/commons)
  • data migration automated tests added (@mockoon/commons)
  • CLI automated tests added (@mockoon/cli)
  • desktop automated tests added (@mockoon/desktop)

-Make the Faker wrapper returns the actual faker's function value (string, number, etc.). Like this, the `faker` helper is compatible with other helpers that needs other things than strings (`int`, `if`, etc.)
Closes #699
@255kb 255kb merged commit 9d507f5 into main May 5, 2022
@255kb 255kb deleted the fix/699-faker-safestring branch May 5, 2022 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using variable nested in helper

1 participant