diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-11 19:15:32 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-11 19:15:32 +0300 |
commit | 623b75523fbec13f26b532972a46e75faf149088 (patch) | |
tree | ce04a52fd058b3017037ecc4a843a39c2a829575 /library/cpp/messagebus/test/ut/www_ut.cpp | |
parent | 4f5398551111a2b05b55de391d5d296bd0a670bf (diff) | |
download | ydb-623b75523fbec13f26b532972a46e75faf149088.tar.gz |
intermediate changes
ref:ee911405f4248489c0aa2817134b7162e0b94f18
Diffstat (limited to 'library/cpp/messagebus/test/ut/www_ut.cpp')
-rw-r--r-- | library/cpp/messagebus/test/ut/www_ut.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/library/cpp/messagebus/test/ut/www_ut.cpp b/library/cpp/messagebus/test/ut/www_ut.cpp new file mode 100644 index 0000000000..181984db47 --- /dev/null +++ b/library/cpp/messagebus/test/ut/www_ut.cpp @@ -0,0 +1,19 @@ +#include <library/cpp/testing/unittest/registar.h> +#include <library/cpp/resource/resource.h> + +Y_UNIT_TEST_SUITE(Www) { + Y_UNIT_TEST(messagebus_js) { + auto str = NResource::Find("/messagebus.js"); + UNIT_ASSERT(str.Contains("logTransform")); + UNIT_ASSERT(str.Contains("plotHist")); + } + + Y_UNIT_TEST(busico_png) { + auto str = NResource::Find("/bus-ico.png"); + UNIT_ASSERT(str.Contains("PNG")); //header + } + + Y_UNIT_TEST(not_exist) { + UNIT_ASSERT_EXCEPTION(NResource::Find("/not_exist"), yexception); + } +} |