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
d6198835
Commit
d6198835
authored
Jul 05, 2012
by
Prem Sichanugrist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch `window.it` to raise error on pending tests
parent
27c83bd6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
cms/static/coffee/spec/helpers.coffee
+9
-0
No files found.
cms/static/coffee/spec/helpers.coffee
View file @
d6198835
...
@@ -7,3 +7,12 @@ jQuery.cookie = (key, value) =>
...
@@ -7,3 +7,12 @@ jQuery.cookie = (key, value) =>
@
stubCookies
[
key
]
=
value
@
stubCookies
[
key
]
=
value
else
else
@
stubCookies
[
key
]
@
stubCookies
[
key
]
# Path Jasmine's `it` method to raise an error when the test is not defined.
# This is helpful when writing the specs first before writing the test.
@
it
=
(
desc
,
func
)
->
if
func
?
jasmine
.
getEnv
().
it
(
desc
,
func
)
else
jasmine
.
getEnv
().
it
desc
,
->
throw
"test is undefined"
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