You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have added ng-apimock to our Angular project. We have successfully created first mock definitions and wrote tests with protractor.
Now we want to start using global variables in mock definitions. As it seems I always have to use double quotes for variables. But in my case I need a number and not a string.
I have created a question on stackoverflow with a sample already, you can find it here
Any ideas how to get this working?
The text was updated successfully, but these errors were encountered:
I had the same issue, however, it was caused by the variable within the preset file that was accidentally a string. By removing the quotes here, the apimock response field turned into a number even mock field containing the variable is a quoted string.
I have added ng-apimock to our Angular project. We have successfully created first mock definitions and wrote tests with protractor.
Now we want to start using global variables in mock definitions. As it seems I always have to use double quotes for variables. But in my case I need a number and not a string.
I have created a question on stackoverflow with a sample already, you can find it here
Any ideas how to get this working?
The text was updated successfully, but these errors were encountered: