-
Notifications
You must be signed in to change notification settings - Fork 1
LAB5
#Lab Tutorial 5 Documentation
Lab 5 to develop and unit test an ionic hybrid mashup application. The application enables the user to login/signup and to find the logo of any organization using the domain name with emotion analysis and an overview of the Company along with its Website, Category, Estd, Services offered.
Mashup application developed using Ionic, AngularJs, NodeJS npm package manager, Cordova plugins and Webstorm. Testing is carried out using Karma and Jasmine. Api's used are
- Fullcontact for company logo and overview using the domain name.
- Indico.io for emotion analysis of the logo The detailed screenshots of the application are below:
Unit Testing Using Karma/Jasmine:
describe('loginCtrl', function () {
beforeEach(module('app'));
var $controller;
beforeEach(inject(function(_$controller_) {
`$controller =_$controller_;`
}));
describe('$scope.log', function () {
it('tests login function of loginCtrl', function () {
var $scope={};
var controller = $controller('loginCtrl',{ $scope: $scope});
$scope.tpaswrd1='pruthvi';
$scope.tsflag=false;
expect($scope.log(tpaswrd1)).toEqual(true);
expect($scope.log("undefined")).toEqual(false);
`})`
})
})
