Skip to content

Commit

Permalink
fix(app): dependency socket and test
Browse files Browse the repository at this point in the history
  • Loading branch information
balthazar committed Feb 6, 2015
1 parent c718e81 commit 4f577b6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/templates/client/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ angular.module('<%= appname %>', [
'ngCookies'<% } %><% if (filters.ngResource) { %>,
'ngResource'<% } %><% if (filters.ngSanitize) { %>,
'ngSanitize'<% } %><% if (filters.ngAnimate) { %>,
'ngAnimate'<% } %>
'ngAnimate'<% } %><% if (filters.sockets) { %>,
'btford.socket-io'<% } %>
])
.config(function ($routeProvider, $locationProvider) {

Expand Down
2 changes: 1 addition & 1 deletion app/templates/client/views/home/home.controller.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

angular.module('<%= appname %>')
.controller('HomeCtrl', function (<% if (filters.socket) { %>Socket<% } %>) {
.controller('HomeCtrl', function (<% if (filters.sockets) { %>Socket<% } %>) {

var vm = this;

Expand Down
1 change: 1 addition & 0 deletions test/test-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ describe('Launching app generator tests', function () {
assert.fileContent('package.json', '"socket.io":');
assert.fileContent('bower.json', '"angular-socket-io":');
assert.fileContent('client/index.html', 'socket.io/socket.io.js');
assert.fileContent('client/app.js', 'btford.socket-io');
assert.file('server/config/sockets.js');
assert.fileContent('server/server.js', 'var socket = require(\'socket.io\')');
assert.fileContent('server/server.js', 'require(\'./config/sockets.js\')(socket);');
Expand Down

0 comments on commit 4f577b6

Please sign in to comment.