Hi, I 'm new to Ktor. My question is, what's a goo...
# ktor
a
Hi, I 'm new to Ktor. My question is, what's a good a approach to testing directly that a plugin has been installed? e.g. directly asserting that
IgnoreTrailingSlash
is installed. Right now I just have a test that asserts a side effect of that plugin (e.g. test one route) as a proxy to that fact.
a
You can use the pluginOrNull method to get an instance of the plugin or null if it hasn't been installed.
a
Thank you so much!