Skip to content

Instantly share code, notes, and snippets.

@rolaveric
Last active August 29, 2015 14:13
Show Gist options
  • Save rolaveric/fc8e5ba027e4a55b1675 to your computer and use it in GitHub Desktop.
Save rolaveric/fc8e5ba027e4a55b1675 to your computer and use it in GitHub Desktop.
An AngularJS unit test changed to use ES6
import 'angular';
import 'angular-route';
import 'angular-mocks';
import './view1';
describe('myApp.view1 module', function() {
beforeEach(angular.mock.module('myApp.view1'));
describe('view1 controller', function(){
it('should ....', inject(function($controller) {
//spec body
var view1Ctrl = $controller('View1Ctrl');
expect(view1Ctrl).toBeDefined();
}));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment