Skip to content

Commit

Permalink
test(e2e): assertions of protractor files
Browse files Browse the repository at this point in the history
  • Loading branch information
balthazar committed Mar 5, 2015
1 parent 17260f3 commit b9f9321
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 12 additions & 2 deletions test/test-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ function basicFileCheck () {
'client/views/home/home.html',
'client/views/home/home.js',
'client/views/home/home.spec.js',
'client/views/home/home.e2e.js',
'README.md',
'.editorconfig',
'.jshintrc',
Expand Down Expand Up @@ -229,9 +230,18 @@ describe('Launching app generator tests', function () {
});

it('should test for auth files', function () {

assert.file([
'client/views/signup',
'client/views/login',
'client/views/signup/signup.controller.js',
'client/views/signup/signup.html',
'client/views/signup/signup.js',
'client/views/signup/signup.spec.js',
'client/views/signup/signup.e2e.js',
'client/views/login/login.controller.js',
'client/views/login/login.html',
'client/views/login/login.js',
'client/views/login/login.spec.js',
'client/views/login/login.e2e.js',
'client/services/auth',
'server/auth',
]);
Expand Down
2 changes: 2 additions & 0 deletions test/test-route.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ describe('Launching route tests', function () {
assert.file('client/views/contact/contact.controller.js');
assert.file('client/views/contact/contact.spec.js');
assert.file('client/views/contact/contact.html');
assert.file('client/views/contact/contact.e2e.js');

assert.fileContent('client/views/contact/contact.controller.js', 'ContactCtrl');
assert.fileContent('client/views/contact/contact.spec.js', '$controller(\'ContactCtrl\'');
Expand All @@ -60,6 +61,7 @@ describe('Launching route tests', function () {
assert.file('client/views/yolo/yolo.scss');
assert.file('client/views/yolo/yolo.controller.js');
assert.file('client/views/yolo/yolo.spec.js');
assert.file('client/views/yolo/yolo.e2e.js');
assert.file('client/views/yolo/yolo.html');

assert.fileContent('client/views/yolo/yolo.controller.js', 'YoloCtrl');
Expand Down

0 comments on commit b9f9321

Please sign in to comment.