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
b0f12d0f
Commit
b0f12d0f
authored
Nov 02, 2013
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
$.proxy can be used to pass in extra args, no need for fn.bind
parent
ff345dcf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
spec/ChatRoomSpec.js
spec/ChatRoomSpec.js
+2
-3
spec/MainSpec.js
spec/MainSpec.js
+2
-3
No files found.
spec/ChatRoomSpec.js
View file @
b0f12d0f
...
...
@@ -7,7 +7,7 @@
}
);
}
(
this
,
function
(
mock
,
utils
)
{
var
chatrooms_spec_callback
=
function
(
mock
,
utils
)
{
return
describe
(
"
ChatRooms
"
,
$
.
proxy
(
function
(
mock
,
utils
)
{
describe
(
"
A Chat Room
"
,
$
.
proxy
(
function
()
{
beforeEach
(
$
.
proxy
(
function
()
{
if
(
!
$
(
"
div#controlbox
"
).
is
(
'
:visible
'
))
{
...
...
@@ -262,6 +262,5 @@
expect
(
view
.
$el
.
find
(
'
.chat-body p
'
).
text
()).
toBe
(
"
This room has reached it's maximum number of occupants
"
);
},
converse
));
},
converse
));
};
return
describe
(
"
ChatRooms
"
,
chatrooms_spec_callback
.
bind
(
converse
,
mock
,
utils
));
},
converse
,
mock
,
utils
));
}));
spec/MainSpec.js
View file @
b0f12d0f
...
...
@@ -7,7 +7,7 @@
}
);
}
(
this
,
function
(
mock
,
utils
)
{
var
spec_callback
=
function
(
mock
,
utils
)
{
return
describe
(
"
Converse.js
"
,
$
.
proxy
(
function
(
mock
,
utils
)
{
describe
(
"
The Control Box
"
,
$
.
proxy
(
function
()
{
it
(
"
is not shown by default
"
,
$
.
proxy
(
function
()
{
expect
(
this
.
rosterview
.
$el
.
is
(
'
:visible
'
)).
toEqual
(
false
);
...
...
@@ -705,6 +705,5 @@
},
converse
));
},
converse
));
},
converse
));
};
return
describe
(
"
Converse.js
"
,
spec_callback
.
bind
(
converse
,
mock
,
utils
));
},
converse
,
mock
,
utils
));
}));
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