wiki-story Pub Share

Generic unit test for wiki messages functionality

Browse a tag

send::  msg snakk.text  (url ="https://www.effectiveskiing.co"...)

expect::  (payload contains "Knowticing")

How to read the contents of a topic in a few formats:

send::  msg diesel.wiki.content  (wpath ="Sample:sample-json-data"..., type="JSON")

expect::  (payload is JSON)
expect::  (payload[="name"] is "Jake")

send::  msg diesel.wiki.content  (wpath ="Sample:sample-json-data"...)

expect::  (payload is String)
send::  msg snakk.parse.json 

expect::  (payload is JSON)

You can format a topic:

send::  msg diesel.wiki.format  (wpath="Admin:UserHome")

expect::  (payload is HTML)

TODO test also the diesel.wiki.updated (wpath, realm, event, userName)


Was this useful?    

By: Razie | 2017-11-30 .. 2022-06-17 | Tags: story , dsl , sanity


Viewed 896 times ( | History | Print ) this page.

You need to log in to post a comment!

© Copyright DieselApps, 2012-2024, all rights reserved.