You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
While trying to pinpoint an issue with using a custom adapter and worker within unit tests, I came upon a change that happened in #1938 on core.ts right here. It is in the spawn function of the core.ts file, when assigning the adapter variable.
I cannot test this since I have no idea how to pass a custom_adapter to the spawn function! I did not find any test code using it.
Context:
Botkit version: 4.9.0
The text was updated successfully, but these errors were encountered:
etiennellipse
changed the title
Broken statement in core.ts when selecting the adapter in the spawn() function
Broken statement in core.ts when selecting the adapter in the spawn() function of version 4.9.0
Jun 23, 2020
While trying to pinpoint an issue with using a custom adapter and worker within unit tests, I came upon a change that happened in #1938 on core.ts right here. It is in the spawn function of the core.ts file, when assigning the
adapter
variable.Latest version, line 1093
This condition seems faulty:
It will never return the
custom_adapter
, if one was passed. Since the statement is now a ternary, the custom_adapter will not be returned.As in this example:
The returned value is
"1"
, nottrue
.To get something similar to the previous behaviour, the line should look something like:
I cannot test this since I have no idea how to pass a custom_adapter to the spawn function! I did not find any test code using it.
Context:
The text was updated successfully, but these errors were encountered: