Skip to content

Commit 657dc82

Browse files
committed
fixed tests for application nodes
1 parent 5b0a268 commit 657dc82

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

test/app_node.js

+28
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ var mockConfig = {
2929
'<iq from="alice@localhost/http" type="set">\
3030
<pubsub xmlns="http://jabber.org/protocol/pubsub">\
3131
<create node="/user/alice@localhost/existing_princely_musings"/>\
32+
<configure node="/user/alice@localhost/existing_princely_musings">\
33+
<x xmlns="jabber:x:data" type="submit">\
34+
<field var="FORM_TYPE" type="hidden">\
35+
<value>http://jabber.org/protocol/pubsub#node_config</value>\
36+
</field>\
37+
</x>\
38+
</configure>\
3239
</pubsub>\
3340
</iq>':
3441
'<iq type="error">\
@@ -41,6 +48,13 @@ var mockConfig = {
4148
'<iq from="alice@localhost/http" type="set">\
4249
<pubsub xmlns="http://jabber.org/protocol/pubsub">\
4350
<create node="/user/alice@localhost/forbidden_princely_musings"/>\
51+
<configure node="/user/alice@localhost/forbidden_princely_musings">\
52+
<x xmlns="jabber:x:data" type="submit">\
53+
<field var="FORM_TYPE" type="hidden">\
54+
<value>http://jabber.org/protocol/pubsub#node_config</value>\
55+
</field>\
56+
</x>\
57+
</configure>\
4458
</pubsub>\
4559
</iq>':
4660
'<iq type="error">\
@@ -53,6 +67,13 @@ var mockConfig = {
5367
'<iq from="alice@localhost/http" type="set">\
5468
<pubsub xmlns="http://jabber.org/protocol/pubsub">\
5569
<create node="/user/alice@localhost/unregistered_princely_musings"/>\
70+
<configure node="/user/alice@localhost/unregistered_princely_musings">\
71+
<x xmlns="jabber:x:data" type="submit">\
72+
<field var="FORM_TYPE" type="hidden">\
73+
<value>http://jabber.org/protocol/pubsub#node_config</value>\
74+
</field>\
75+
</x>\
76+
</configure>\
5677
</pubsub>\
5778
</iq>':
5879
'<iq type="error">\
@@ -65,6 +86,13 @@ var mockConfig = {
6586
'<iq from="alice@localhost/http" type="set">\
6687
<pubsub xmlns="http://jabber.org/protocol/pubsub">\
6788
<create node="/user/alice@localhost/princely_musings"/>\
89+
<configure node="/user/alice@localhost/princely_musings">\
90+
<x xmlns="jabber:x:data" type="submit">\
91+
<field var="FORM_TYPE" type="hidden">\
92+
<value>http://jabber.org/protocol/pubsub#node_config</value>\
93+
</field>\
94+
</x>\
95+
</configure>\
6896
</pubsub>\
6997
</iq>':
7098
'<iq type="result"/>',

0 commit comments

Comments
 (0)