Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
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
Eugene Shen
todomvc
Commits
814755ed
Commit
814755ed
authored
Jun 30, 2012
by
Stas SUȘCOV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace mocha and chai with jasmine.
parent
7b280ae7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
18 deletions
+12
-18
dependency-examples/emberjs_require/index.html
dependency-examples/emberjs_require/index.html
+1
-0
dependency-examples/emberjs_require/js/app.js
dependency-examples/emberjs_require/js/app.js
+4
-4
dependency-examples/emberjs_require/js/app/specs/helper.js
dependency-examples/emberjs_require/js/app/specs/helper.js
+7
-14
No files found.
dependency-examples/emberjs_require/index.html
View file @
814755ed
...
...
@@ -5,6 +5,7 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<title>
ember.js + require.js • TodoMVC
</title>
<link
rel=
"stylesheet"
href=
"../../assets/base.css"
>
<link
rel=
"stylesheet"
href=
"../../assets/jasmine/jasmine.css"
>
<link
rel=
"stylesheet"
href=
"css/app.css"
>
<!--[if IE]>
<script src="../../assets/ie.js"></script>
...
...
dependency-examples/emberjs_require/js/app.js
View file @
814755ed
...
...
@@ -3,11 +3,11 @@ require.config({
baseUrl
:
'
js/
'
,
paths
:
{
jquery
:
'
../../../assets/jquery.min
'
,
ember
:
'
http://cloud.github.com/downloads/emberjs/ember.js/ember-latest.min
'
,
// ember: 'lib/ember-0.9.8.1.min
',
//
ember: 'http://cloud.github.com/downloads/emberjs/ember.js/ember-latest.min',
ember
:
'
lib/ember-latest
'
,
text
:
'
lib/require/text
'
,
mocha
:
'
lib/mocha
'
,
chai
:
'
lib/chai
'
jasmine
:
'
../../../assets/jasmine/jasmine
'
,
jasmine_html
:
'
../../../assets/jasmine/jasmine-html
'
}
});
...
...
dependency-examples/emberjs_require/js/app/specs/helper.js
View file @
814755ed
define
(
'
app/specs/helper
'
,
[
'
chai
'
,
'
mocha
'
],
define
(
'
app/specs/helper
'
,
[
'
jasmine
'
,
'
jasmine_html
'
],
/**
* Specs Runner
*/
function
(
chai
)
{
// Create placeholder for mocha output
// TODO: Make this shit look better and inside body
$
(
document
.
body
).
before
(
'
<div id="mocha"></div>
'
);
// Setup mocha and expose chai matchers
window
.
expect
=
chai
.
expect
;
mocha
.
setup
(
'
bdd
'
);
function
()
{
// Load testsuite
require
([
'
app/specs/models/store
'
,
'
app/specs/views/basic_acceptance
'
,
'
app/specs/controllers/todos
'
'
app/specs/todoMVC
'
,
],
function
()
{
mocha
.
run
().
globals
(
[
'
$
'
,
'
Ember
'
,
'
Todos
'
]
);
var
jasmineEnv
=
jasmine
.
getEnv
();
var
htmlReporter
=
new
jasmine
.
HtmlReporter
();
jasmineEnv
.
addReporter
(
htmlReporter
);
jasmineEnv
.
execute
();
});
}
);
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