Advertisement
Guest User

Untitled

a guest
Apr 25th, 2014
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. it('test', function() {
  2. runs(function() {
  3.  
  4. });
  5. });
  6.  
  7. files: [
  8. 'bower_components/jquery/dist/jquery.min.js',
  9. 'bower_components/angular/angular.js',
  10. 'bower_components/angular-mocks/angular-mocks.js',
  11. 'src/*.js',
  12. 'test/*.spec.js'
  13. ],
  14.  
  15.  
  16. frameworks: ['jasmine'],
  17.  
  18. browsers: ['PhantomJS'],
  19.  
  20. plugins: [
  21. 'karma-spec-reporter',
  22. 'karma-chrome-launcher',
  23. 'karma-firefox-launcher',
  24. 'karma-jasmine',
  25. 'karma-phantomjs-launcher'
  26. ],
  27.  
  28. expect($scope.timedvariable).toEqual('before timeout value');
  29. // Flush the timeout service
  30. $timeout.flush();
  31. // the actions within the $timeout are executed
  32. expect($scope.timedvariable).toEqual('value after timeout');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement