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
Sven Franck
todomvc
Commits
fc9fdea9
Commit
fc9fdea9
authored
9 years ago
by
Arthur Verschaeve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Vanillajs: update to latest jasmine
parent
ac8ac59e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
35 deletions
+13
-35
examples/vanillajs/package.json
examples/vanillajs/package.json
+1
-1
examples/vanillajs/test/ControllerSpec.js
examples/vanillajs/test/ControllerSpec.js
+8
-8
examples/vanillajs/test/SpecRunner.html
examples/vanillajs/test/SpecRunner.html
+4
-26
No files found.
examples/vanillajs/package.json
View file @
fc9fdea9
...
@@ -5,6 +5,6 @@
...
@@ -5,6 +5,6 @@
"todomvc-app-css"
:
"^1.0.1"
"todomvc-app-css"
:
"^1.0.1"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"jasmine-core"
:
"^
0.3
.0"
"jasmine-core"
:
"^
2.0
.0"
}
}
}
}
This diff is collapsed.
Click to expand it.
examples/vanillajs/test/ControllerSpec.js
View file @
fc9fdea9
...
@@ -6,12 +6,12 @@ describe('controller', function () {
...
@@ -6,12 +6,12 @@ describe('controller', function () {
var
subject
,
model
,
view
;
var
subject
,
model
,
view
;
var
setUpModel
=
function
(
todos
)
{
var
setUpModel
=
function
(
todos
)
{
model
.
read
.
and
C
allFake
(
function
(
query
,
callback
)
{
model
.
read
.
and
.
c
allFake
(
function
(
query
,
callback
)
{
callback
=
callback
||
query
;
callback
=
callback
||
query
;
callback
(
todos
);
callback
(
todos
);
});
});
model
.
getCount
.
and
C
allFake
(
function
(
callback
)
{
model
.
getCount
.
and
.
c
allFake
(
function
(
callback
)
{
var
todoCounts
=
{
var
todoCounts
=
{
active
:
todos
.
filter
(
function
(
todo
)
{
active
:
todos
.
filter
(
function
(
todo
)
{
...
@@ -26,15 +26,15 @@ describe('controller', function () {
...
@@ -26,15 +26,15 @@ describe('controller', function () {
callback
(
todoCounts
);
callback
(
todoCounts
);
});
});
model
.
remove
.
and
C
allFake
(
function
(
id
,
callback
)
{
model
.
remove
.
and
.
c
allFake
(
function
(
id
,
callback
)
{
callback
();
callback
();
});
});
model
.
create
.
and
C
allFake
(
function
(
title
,
callback
)
{
model
.
create
.
and
.
c
allFake
(
function
(
title
,
callback
)
{
callback
();
callback
();
});
});
model
.
update
.
and
C
allFake
(
function
(
id
,
updateData
,
callback
)
{
model
.
update
.
and
.
c
allFake
(
function
(
id
,
updateData
,
callback
)
{
callback
();
callback
();
});
});
};
};
...
@@ -216,9 +216,9 @@ describe('controller', function () {
...
@@ -216,9 +216,9 @@ describe('controller', function () {
subject
.
setView
(
''
);
subject
.
setView
(
''
);
view
.
render
.
reset
();
view
.
render
.
calls
.
reset
();
model
.
read
.
reset
();
model
.
read
.
calls
.
reset
();
model
.
read
.
and
C
allFake
(
function
(
callback
)
{
model
.
read
.
and
.
c
allFake
(
function
(
callback
)
{
callback
([{
callback
([{
title
:
'
a new todo
'
,
title
:
'
a new todo
'
,
completed
:
false
completed
:
false
...
...
This diff is collapsed.
Click to expand it.
examples/vanillajs/test/SpecRunner.html
View file @
fc9fdea9
...
@@ -3,14 +3,14 @@
...
@@ -3,14 +3,14 @@
<head>
<head>
<title>
Jasmine Spec Runner
</title>
<title>
Jasmine Spec Runner
</title>
<link
rel=
"stylesheet"
href=
"../node_modules/jasmine/lib/jasmine-core/jasmine.css"
>
<link
rel=
"stylesheet"
href=
"../node_modules/jasmine-core/lib/jasmine-core/jasmine.css"
>
<script
src=
"../node_modules/jasmine/lib/jasmine-core/jasmine.js"
></script>
<script
src=
"../node_modules/jasmine-core/lib/jasmine-core/jasmine.js"
></script>
<script
src=
"../node_modules/jasmine/lib/jasmine-core/jasmine-html.js"
></script>
<script
src=
"../node_modules/jasmine-core/lib/jasmine-core/jasmine-html.js"
></script>
<script
src=
"../node_modules/jasmine-core/lib/jasmine-core/boot.js"
></script>
<!-- include spec files here... -->
<!-- include spec files here... -->
<script
src=
"ControllerSpec.js"
></script>
<script
src=
"ControllerSpec.js"
></script>
<!-- include source files here... -->
<script>
<script>
// Bootstrap app data
// Bootstrap app data
window
.
app
=
{};
window
.
app
=
{};
...
@@ -19,28 +19,6 @@
...
@@ -19,28 +19,6 @@
<script
src=
"../js/helpers.js"
></script>
<script
src=
"../js/helpers.js"
></script>
<script
src=
"../js/view.js"
></script>
<script
src=
"../js/view.js"
></script>
<script
src=
"../js/controller.js"
></script>
<script
src=
"../js/controller.js"
></script>
<script
type=
"text/javascript"
>
(
function
()
{
var
jasmineEnv
=
jasmine
.
getEnv
();
var
htmlReporter
=
new
jasmine
.
HtmlReporter
();
jasmineEnv
.
addReporter
(
htmlReporter
);
jasmineEnv
.
specFilter
=
function
(
spec
)
{
return
htmlReporter
.
specFilter
(
spec
);
};
var
currentWindowOnload
=
window
.
onload
;
window
.
onload
=
function
()
{
if
(
currentWindowOnload
)
{
currentWindowOnload
();
}
jasmineEnv
.
execute
();
};
})();
</script>
</head>
</head>
<body>
<body>
</body>
</body>
...
...
This diff is collapsed.
Click to expand it.
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