add test to jsx_utils for multiple defined pre_encoders
This commit is contained in:
parent
c36bc7babb
commit
f45cb39786
1 changed files with 8 additions and 1 deletions
|
@ -580,7 +580,14 @@ opts_test_() ->
|
|||
ignored_bad_escapes=true
|
||||
}
|
||||
)
|
||||
}
|
||||
},
|
||||
{"two pre-encoders defined", ?_assertError(
|
||||
badarg,
|
||||
parse_opts([
|
||||
{pre_encode, fun(_) -> true end},
|
||||
{pre_encode, fun(_) -> false end}
|
||||
])
|
||||
)}
|
||||
].
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue