Sockets are passing tests

This commit is contained in:
Matt Styles
2013-05-11 23:17:49 +01:00
parent d93cfc1f56
commit a51666b219
3 changed files with 5 additions and 3 deletions

View File

@@ -36,7 +36,7 @@
<div class="container" ng-view></div>
<!-- Scripts -->
<script src="components/socket.io-client/dist/socket.io.js"></script>
<script src="components/socket.io-client/dist/socket.io.min.js"></script>
<script src="components/angular/angular.js"></script>
<script src="components/angular-resource/angular-resource.js"></script>

View File

@@ -10,6 +10,8 @@ files = [
'app/components/angular/angular.js',
'app/components/angular-mocks/angular-mocks.js',
'app/components/angular-bootstrap/*.js',
'app/components/socket.io-client/dist/*js',
'app/components/angular-socket-io/*.js',
'app/scripts/*.js',
'app/scripts/**/*.js',
'test/mock/**/*.js',

View File

@@ -19,8 +19,8 @@ describe( 'Controller: MainCtrl', function() {
it( 'should attach a list of awesomeClientThings to the scope', function() {
expect( scope.awesomeClientThings.length ).toBe( 8 );
} );
it( 'should attach a list of awesomeServerThings to the scope', function() {
expect( scope.awesomeServerThings.length ).toBe( 2 );
expect( scope.awesomeServerThings.length ).toBe( 3 );
} );
} );