Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
99f235ec
Commit
99f235ec
authored
Jul 30, 2013
by
Kevin Chugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first pass at jasmine tests
parent
62f6e2d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
common/static/coffee/spec/discussion/view/discussion_thread_list_view_spec.coffee
+21
-0
common/static/coffee/src/discussion/views/discussion_thread_list_view.coffee
+0
-2
No files found.
common/static/coffee/spec/discussion/view/discussion_thread_list_view_spec.coffee
0 → 100644
View file @
99f235ec
describe
"DiscussionContentView"
,
->
beforeEach
->
setFixtures
(
"""
<div class="discussion-column">
</div>
"""
)
@
view
=
new
DiscussionThreadListView
()
it
'defines the tag'
,
->
expect
(
$
(
'#jasmine-fixtures'
)).
toExist
expect
(
@
view
.
tagName
).
toBeDefined
expect
(
@
view
.
el
.
tagName
.
toLowerCase
()).
toBe
'div'
it
"defines the class"
,
->
expect
(
@
view
).
toBeDefined
();
common/static/coffee/src/discussion/views/discussion_thread_list_view.coffee
View file @
99f235ec
...
...
@@ -449,8 +449,6 @@ if Backbone?
type
:
"POST"
error
:
()
=>
$
(
'input.email-setting'
).
removeAttr
(
'checked'
)
else
DiscussionUtil
.
safeAjax
url
:
DiscussionUtil
.
urlFor
(
"disable_notifications"
)
...
...
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