Hi Experts,
I am new in writing Angular test cases using Karma .I am using Angular js
version 1.5.8.......... I got stuck in writing the test cases for the below
code ......Help me with this...
function setColor() {
var layoutValue = 'red';
var finalLayout = 'single_asset_promo_module';
if(layoutValue) {
someService.get('id')
.then(function(childNode) {
var newData = {
nid: 'nid',
type: [{value: 'target_id'}],
color: childNode.field_promo_text_color
};
execUpdate(newData);
});
}
else if (layoutValue === 'someother_color' ) {
if('value') {
var newData = {
nid: [{value: 'target_id'}],
type: [{target_id: 'promo'}],
field_promo_text_color: 'field_band_text_color',
};
execUpdate(newData);
}
}
return finalLayout;
}
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/angular/71e2ba21-2036-4836-88ba-d05b84b29b67%40googlegroups.com.