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
c0eaeb7e
Commit
c0eaeb7e
authored
Jul 22, 2015
by
Andy Armstrong
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9000 from edx/andya/fix-discovery-Jasmine-tests
Fix broken Jasmine tests for course discovery
parents
d61d193d
a328770c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
13 deletions
+2
-13
lms/static/js/spec/discovery/discovery_spec.js
+2
-13
No files found.
lms/static/js/spec/discovery/discovery_spec.js
View file @
c0eaeb7e
...
...
@@ -220,16 +220,6 @@ define([
expect
(
this
.
result
.
get
(
'id'
)).
toBeDefined
();
});
it
(
'renders correctly'
,
function
()
{
var
data
=
this
.
item
.
model
.
attributes
;
this
.
item
.
render
();
expect
(
this
.
item
.
$el
).
toContainHtml
(
data
.
content
.
display_name
);
expect
(
this
.
item
.
$el
).
toContain
(
'a[href="/courses/'
+
data
.
course
+
'/about"]'
);
expect
(
this
.
item
.
$el
).
toContain
(
'img[src="'
+
data
.
image_url
+
'"]'
);
expect
(
this
.
item
.
$el
.
find
(
'.course-name'
)).
toContainHtml
(
data
.
org
);
expect
(
this
.
item
.
$el
.
find
(
'.course-name'
)).
toContainHtml
(
data
.
content
.
number
);
expect
(
this
.
item
.
$el
.
find
(
'.course-name'
)).
toContainHtml
(
data
.
content
.
display_name
);
expect
(
this
.
item
.
$el
.
find
(
'.course-date'
)).
toContainHtml
(
'Jan 01, 1970'
);
});
...
...
@@ -246,7 +236,7 @@ define([
var
data
=
this
.
item
.
model
.
attributes
;
this
.
item
.
render
();
expect
(
this
.
item
.
$el
).
toContainHtml
(
data
.
content
.
display_name
);
expect
(
this
.
item
.
$el
).
toContain
(
'a[href="/courses/'
+
data
.
course
+
'/
info
"]'
);
expect
(
this
.
item
.
$el
).
toContain
(
'a[href="/courses/'
+
data
.
course
+
'/
about
"]'
);
expect
(
this
.
item
.
$el
).
toContain
(
'img[src="'
+
data
.
image_url
+
'"]'
);
expect
(
this
.
item
.
$el
.
find
(
'.course-name'
)).
toContainHtml
(
data
.
org
);
expect
(
this
.
item
.
$el
.
find
(
'.course-name'
)).
toContainHtml
(
data
.
content
.
number
);
...
...
@@ -492,8 +482,7 @@ define([
});
describe
(
'Discovery App'
,
function
()
{
describe
(
'Discovery Factory'
,
function
()
{
beforeEach
(
function
()
{
loadFixtures
(
'js/fixtures/discovery.html'
);
...
...
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