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
5cfe52d5
Commit
5cfe52d5
authored
Mar 10, 2013
by
Pascal Hartig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Angular tests rebased and updated to use bower components
parent
552fad06
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
7 deletions
+12
-7
architecture-examples/angularjs/component.json
architecture-examples/angularjs/component.json
+4
-1
architecture-examples/angularjs/components/angular-mocks/angular-mocks.js
...mples/angularjs/components/angular-mocks/angular-mocks.js
+0
-0
architecture-examples/angularjs/test/config/testacular.conf.js
...tecture-examples/angularjs/test/config/testacular.conf.js
+2
-2
architecture-examples/angularjs/test/unit/directivesSpec.js
architecture-examples/angularjs/test/unit/directivesSpec.js
+1
-0
architecture-examples/angularjs/test/unit/todoCtrlSpec.js
architecture-examples/angularjs/test/unit/todoCtrlSpec.js
+5
-4
No files found.
architecture-examples/angularjs/component.json
View file @
5cfe52d5
...
...
@@ -4,5 +4,8 @@
"dependencies"
:
{
"angular"
:
"~1.0.5"
,
"todomvc-common"
:
"~0.1.0"
},
"devDependencies"
:
{
"angular-mocks"
:
"~1.0.5"
}
}
}
\ No newline at end of file
architecture-examples/angularjs/
test/lib
s/angular-mocks.js
→
architecture-examples/angularjs/
components/angular-mock
s/angular-mocks.js
View file @
5cfe52d5
File moved
architecture-examples/angularjs/test/config/testacular.conf.js
View file @
5cfe52d5
...
...
@@ -3,8 +3,8 @@ basePath = '../../';
files
=
[
JASMINE
,
JASMINE_ADAPTER
,
'
js/libs/angular/angular.min
.js
'
,
'
test/lib
s/angular-mocks.js
'
,
'
components/angular/angular
.js
'
,
'
components/angular-mock
s/angular-mocks.js
'
,
'
js/**/*.js
'
,
'
test/unit/**/*.js
'
];
...
...
architecture-examples/angularjs/test/unit/directivesSpec.js
View file @
5cfe52d5
/*global describe, it, beforeEach, inject, expect, angular*/
(
function
()
{
'
use strict
'
;
...
...
architecture-examples/angularjs/test/unit/todoCtrlSpec.js
View file @
5cfe52d5
/*global describe, it, beforeEach, inject, expect*/
(
function
()
{
'
use strict
'
;
...
...
@@ -100,7 +101,7 @@
it
(
'
should count Todos correctly
'
,
function
()
{
expect
(
scope
.
todos
.
length
).
toBe
(
5
);
expect
(
scope
.
remainingCount
).
toBe
(
3
);
expect
(
scope
.
done
Count
).
toBe
(
2
);
expect
(
scope
.
completed
Count
).
toBe
(
2
);
expect
(
scope
.
allChecked
).
toBeFalsy
();
});
...
...
@@ -116,15 +117,15 @@
expect
(
scope
.
todos
.
length
).
toBe
(
4
);
});
it
(
'
clear
Done
Todos() should clear completed Todos
'
,
function
()
{
scope
.
clear
Done
Todos
();
it
(
'
clear
Completed
Todos() should clear completed Todos
'
,
function
()
{
scope
.
clear
Completed
Todos
();
expect
(
scope
.
todos
.
length
).
toBe
(
3
);
});
it
(
'
markAll() should mark all Todos completed
'
,
function
()
{
scope
.
markAll
();
scope
.
$digest
();
expect
(
scope
.
done
Count
).
toBe
(
5
);
expect
(
scope
.
completed
Count
).
toBe
(
5
);
});
});
});
...
...
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