AngularJS Packaging and Testing
AngularJS Packaging and Testing
Package
Grunt Relies on
Both the options
Grunt runs tasks using Temporary files which are disk I/O operations.
True
----------------------------------------
This will act as a type of documentation because it describes the expected behavior
of the functions and modules.
Unit Testing
This one allows you to inject and mock angular services to help you test your
application
ngMock
This is all about splitting your code into small testable modules with each module
having its own functionality and level of abstraction.
Unit testing
----------------------
The testing framework we have used in our course is
Jasmine
vm.add = function(a,b){
if(typeof a !== 'number' || typeof b !== 'number'){
return 'invalid args';
}
return a+b;
}
invalid args
----------------------------------------------------------------------------------
The following code is used to install protractor
The webdriver-manager can be used and the necessary binaries can be downloaded
using
webdriver-manager update