Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
1879c18c
Commit
1879c18c
authored
Jun 18, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trying to fix failing test on travis
parent
dd91d3cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/protocol.js
spec/protocol.js
+4
-4
No files found.
spec/protocol.js
View file @
1879c18c
...
...
@@ -54,7 +54,7 @@
{
roster_groups
:
false
},
async
function
(
done
,
_converse
)
{
var
contact
,
sent_stanza
,
IQ_id
,
stanza
,
modal
;
let
contact
,
sent_stanza
,
IQ_id
,
stanza
;
await
test_utils
.
waitUntilDiscoConfirmed
(
_converse
,
'
montague.lit
'
,
[],
[
'
vcard-temp
'
]);
await
test_utils
.
waitUntil
(()
=>
_converse
.
xmppstatus
.
vcard
.
get
(
'
fullname
'
),
300
);
/* The process by which a user subscribes to a contact, including
...
...
@@ -75,7 +75,7 @@
});
cbview
.
el
.
querySelector
(
'
.add-contact
'
).
click
()
modal
=
_converse
.
rosterview
.
add_contact_modal
;
const
modal
=
_converse
.
rosterview
.
add_contact_modal
;
await
test_utils
.
waitUntil
(()
=>
u
.
isVisible
(
modal
.
el
),
1000
);
spyOn
(
modal
,
"
addContactFromForm
"
).
and
.
callThrough
();
modal
.
delegateEvents
();
...
...
@@ -173,9 +173,9 @@
*
* <presence to='contact@example.org' type='subscribe'/>
*/
await
test_utils
.
waitUntil
(()
=>
sent_stanzas
.
filter
(
s
=>
s
.
match
(
'
presence
'
)
));
const
sent_presence
=
await
test_utils
.
waitUntil
(()
=>
sent_stanzas
.
filter
(
s
=>
s
.
match
(
'
presence
'
)).
pop
(
));
expect
(
contact
.
subscribe
).
toHaveBeenCalled
();
expect
(
sent_
stanza
.
toLocaleString
()
).
toBe
(
// Strophe adds the xmlns attr (although not in spec)
expect
(
sent_
presence
).
toBe
(
// Strophe adds the xmlns attr (although not in spec)
`<presence to="contact@example.org" type="subscribe" xmlns="jabber:client">`
+
`<nick xmlns="http://jabber.org/protocol/nick">Romeo Montague</nick>`
+
`</presence>`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment