Skip to content

Instantly share code, notes, and snippets.

@superchris
Last active December 21, 2015 19:38
Show Gist options
  • Save superchris/6355325 to your computer and use it in GitHub Desktop.
Save superchris/6355325 to your computer and use it in GitHub Desktop.
slides
module.exports = function(config) {
config.set({
basePath : '../',
frameworks : ["jasmine"],
files : [
'app/lib/angular/angular.js',
'app/lib/angular/angular-*.js',
'test/lib/angular/angular-mocks.js',
'app/js/**/*.js',
'test/unit/**/*.js'
],
autoWatch : true,
browsers : ['Chrome'],
junitReporter : {
outputFile: 'test_out/unit.xml',
suite: 'unit'
}
});
};

Things to test:

  • Controllers
    • simply create them
      • phone step 2
    • with dependencies
      • angular-mocks and inject
      • phone step 5
  • Factories and services
    • resource collection spec
    • authentication service
  • Directives
    • upload modal
    • Dave Moshers example
  • end to end tests
    • phone cat

Dave Mosher's example: https://github.com/davemo/lineman-angular-template

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