ifttt_spec Pub Share

Testing rest snakking

0 $mock:: ifttt.event1 (p1, p2)
   . (res="Congrat", ev="event1")
msg POST ifttt.event1  (p1, p2)

{{template ifttt.event1:regex=/(?<res>[^!]*).*fired the (?<ev>[^!]*) event/}} (view)

0 $mock:: ifttt.receiveEmail (from)
   . (result="ok")

$when:: ifttt.receiveEmail (from)
   ifttt.sendEmail

0 $mock:: ifttt.sendEmail (from)
   . (result="ok")
msg POST ifttt.sendEmail  (from, p2)

{{template ifttt.sendEmail:regex=/(?<res>[^!]*).*fired the (?<ev>[^!]*) event/}} (view)


Was this useful?    

By: Razie | 2017-03-27 .. 2021-02-02 | Tags: spec , dsl , private


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

You need to log in to post a comment!

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