Last active
August 29, 2015 14:13
-
-
Save rolaveric/fc8e5ba027e4a55b1675 to your computer and use it in GitHub Desktop.
An AngularJS unit test changed to use ES6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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