Answer the question
In order to leave comments, you need to log in
How to properly test a class using a helper?
The class uses Helper.queryToUrl(param) those static method.
This is how the method I'm testing looks like
public findExtendedByQueryObject(queryObject: object): Promise<SearchResult> {
const queryString = Helpers.queryToUrl(queryObject);
return this.find(`/organizations/?${queryString}`);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question