updated the unit tests (#77)
diff --git a/tests/src/test/scala/packages/PushNotificationsTests.scala b/tests/src/test/scala/packages/PushNotificationsTests.scala
index 55d4a07..3ce0549 100644
--- a/tests/src/test/scala/packages/PushNotificationsTests.scala
+++ b/tests/src/test/scala/packages/PushNotificationsTests.scala
@@ -34,6 +34,8 @@
val url = "www.google.com".toJson;
val messageText = "This is pushnotifications Testing".toJson;
+ val unicodeMessage = "\ue04a".toJson;
+ val accentMessage = "Máxima de 33 C and Mínima de 26 C".toJson;
behavior of "Push Package"
@@ -44,6 +46,20 @@
}
}
+ it should "Send Notification action with unicode message" in {
+ val name = "/whisk.system/pushnotifications/sendMessage"
+ withActivation(wsk.activation,wsk.action.invoke(name, Map("appSecret" -> appSecret, "appGuid" -> appGuid, "text" -> unicodeMessage))){
+ _.response.result.get.toString should include ("message")
+ }
+ }
+
+ it should "Send Notification action with accent message" in {
+ val name = "/whisk.system/pushnotifications/sendMessage"
+ withActivation(wsk.activation,wsk.action.invoke(name, Map("appSecret" -> appSecret, "appGuid" -> appGuid, "text" -> accentMessage))){
+ _.response.result.get.toString should include ("message")
+ }
+ }
+
it should "Send Notification action with url" in {
val name = "/whisk.system/pushnotifications/sendMessage"
withActivation(wsk.activation,wsk.action.invoke(name, Map("appSecret" -> appSecret, "appGuid" -> appGuid, "text" -> messageText, "url"-> url))){