Skip to content

Instantly share code, notes, and snippets.

@sroccaserra
Last active August 29, 2015 14:05
Show Gist options
  • Save sroccaserra/4ae9be499c3013ef849b to your computer and use it in GitHub Desktop.
Save sroccaserra/4ae9be499c3013ef849b to your computer and use it in GitHub Desktop.
Notes Node / Angular

Package.json :

scripts: {
    "postinstall": "bower install",

    "prestart": "npm install",
    "start": "http-server -a 0.0.0.0 -p 8000",

Dépôt intéressant :

git clone --depth=14 https://github.com/angular/angular-phonecat.git

Tests auto :

describe('PhoneListCtrl', function(){

  beforeEach(module('phonecatApp'));

  it('should create "phones" model with 3 phones', inject(function($controller) {
    var scope = {},
        ctrl = $controller('PhoneListCtrl', {$scope:scope});

    expect(scope.phones.length).toBe(3);
  }));

});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment