Angular js Fresco play answers
Grunt runs tasks using Temporary files which are disk I/O operations. True
Grunt Relies on both (gruntfile.js & package.json)
Bower was introduced by engineers at twitter
Bower is a new package manager for client
Which one of these is a Bower Concept? Package
Grunt runs tasks using Temporary files which are disk I/O operations. True
In Package.json, to include the latest version we can use . symbol--correct
app folder contains and tests folder contains _ script files,tests
This is all about splitting your code into small testable modules with each module having its own functionality and level of abstraction. linkedin
This one allows you to inject and mock angular services to help you test your application ngmock
This will act as a type of documentation because it describes the expected behavior of the functions and modules. Unit testing
When will you start writing the unit test? ASAP
What will be the output of the following snippet , if we pass 3e,5
vm.add = function(a,b){
if(typeof a !== 'number' || typeof b !== 'number'){
return 'invalid args';
}
return a+b;
}
invalid args
Testing an individual working part of a source code is called unit testing
To run the test, we have to type karma start
The testing framework we have used in our course is jasmine
The E2E testing framework for AngularJS is protractor
The following code is used to install protractor
npm install -g protractor
globally
Protractor is built on top of webdriverJS
Final: 13/15
1. Protractor is built on top of webdriverJS
2. The testing framework we have used in our course is jasmine
3. What will be the output of the following snippet , if we pass 3e,5
4. vm.add = function(a,b){
5. if(typeof a !== 'number' || typeof b !== 'number'){
6. return 'invalid args';
7. }
8. return a+b;
9. }
Invalid args
4. Which one of these is a Bower Concept? Package
5. The webdriver-manager can be used and the necessary binaries can be downloaded using webdriver-manager update-binaries is wrong
6. When will you start writing the unit test? As soon as possible
7. The following is the syntax of installing a Component in Bower
Bower compo compo name is wrong
8. This is all about splitting your code into small testable modules with each module having its own functionality and level of abstraction. None of the option(linkedin) unittest
9. This will act as a type of documentation because it describes the expected behavior of the functions and modules. Unit testing
10. To run the test, we have to type karma start
11. The E2E testing framework for AngularJS is protractor
12. Bower is a new package manager for client
13. This one allows you to inject and mock angular services to help you test your application ngmoc
14. The following code is used to install protractor
npm install -g protractor
globally
15. Grunt runns tasks using Temporary files which are disk I/O operations. True
The syntax for installing a component in Bower is __
bower install component-name
No comments