Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Javascript unit test using mocha - Mock properties object

We are writing test cases using mocha. I am referring to this . Our test cases are around jsc resource that we have. Apigee javascript have context.getVariable(properties.myproperty). How I mock/pass properties.myproperty ? I am getting ReferenceError properties not defined. I am not good with javascript.

0 1 762
1 REPLY 1