Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it('test', function() {
- runs(function() {
- });
- });
- files: [
- 'bower_components/jquery/dist/jquery.min.js',
- 'bower_components/angular/angular.js',
- 'bower_components/angular-mocks/angular-mocks.js',
- 'src/*.js',
- 'test/*.spec.js'
- ],
- frameworks: ['jasmine'],
- browsers: ['PhantomJS'],
- plugins: [
- 'karma-spec-reporter',
- 'karma-chrome-launcher',
- 'karma-firefox-launcher',
- 'karma-jasmine',
- 'karma-phantomjs-launcher'
- ],
- expect($scope.timedvariable).toEqual('before timeout value');
- // Flush the timeout service
- $timeout.flush();
- // the actions within the $timeout are executed
- expect($scope.timedvariable).toEqual('value after timeout');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement