mirror of
https://github.com/valitydev/hellgate.git
synced 2024-11-06 02:45:20 +00:00
TD-793: Refactor cascade tests (#103)
* Refactor cascade tests * Fix spec * Fix tests
This commit is contained in:
parent
30e14fec09
commit
84945e0378
@ -41,7 +41,7 @@ handle_trigger_check(negative_trigger) ->
|
||||
false.
|
||||
|
||||
is_user_interaction_triggered(undefined, _, _) ->
|
||||
not_trigger;
|
||||
not_triggered;
|
||||
is_user_interaction_triggered(
|
||||
#domain_CascadeWhenNoUI{}, Route, Sessions
|
||||
) ->
|
||||
|
@ -315,11 +315,11 @@ start_apps(Apps) ->
|
||||
Apps
|
||||
).
|
||||
|
||||
-type config() :: [{atom(), term()}].
|
||||
-type config() :: [{term(), term()}].
|
||||
-type test_case_name() :: atom().
|
||||
-type group_name() :: atom().
|
||||
|
||||
-spec cfg(atom(), config()) -> term().
|
||||
-spec cfg(term(), config()) -> term().
|
||||
cfg(Key, Config) ->
|
||||
case lists:keyfind(Key, 1, Config) of
|
||||
{Key, V} -> V;
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user