Test Coverage

Added test coverage for all of the QueryBuilder methods which are the foundation to all of the other classes methods like Card.
This commit is contained in:
Bradyn Glines
2018-01-21 11:12:47 -07:00
parent 7662573959
commit 643a54d40d
5 changed files with 346 additions and 4 deletions

View File

@ -45,7 +45,7 @@ export class Client {
private static paramsToQuery(params?: IQuery[]): string {
let query: string = '';
if (params !== null) {
if (params) {
params.map((q: IQuery) => {
query += `${q.name}=${encodeURI(q.value.toString())}`.concat('&');
});