aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/test/ut/www_ut.cpp
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-11 19:15:32 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-11 19:15:32 +0300
commit623b75523fbec13f26b532972a46e75faf149088 (patch)
treece04a52fd058b3017037ecc4a843a39c2a829575 /library/cpp/messagebus/test/ut/www_ut.cpp
parent4f5398551111a2b05b55de391d5d296bd0a670bf (diff)
downloadydb-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.cpp19
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);
+ }
+}