Skip to content

Commit

Permalink
Merge pull request #247 from ibm-cloud-security/revert-246-development
Browse files Browse the repository at this point in the history
Revert "fix(readme.md): Remove unnecessary badges from Readme"
  • Loading branch information
Erika-Grine authored Nov 24, 2021
2 parents 59fa68d + 3e6999a commit bbb7502
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# IBM Cloud App ID Node.js SDK

[![IBM Cloud powered][img-ibmcloud-powered]][url-ibmcloud]
[![Travis][img-travis-master]][url-travis-master]
[![Coveralls][img-coveralls-master]][url-coveralls-master]
[![Codacy][img-codacy]][url-codacy]
[![Version][img-version]][url-npm]
[![DownloadsMonthly][img-npm-downloads-monthly]][url-npm]
[![DownloadsTotal][img-npm-downloads-total]][url-npm]
Expand Down Expand Up @@ -619,5 +621,11 @@ This package contains code licensed under the Apache License, Version 2.0 (the "
[img-github-forks]: https://img.shields.io/github/forks/ibm-cloud-security/appid-serversdk-nodejs.svg?style=social&label=Fork
[url-github-forks]: https://github.com/ibm-cloud-security/appid-serversdk-nodejs/network

[img-travis-master]: https://travis-ci.org/ibm-cloud-security/appid-serversdk-nodejs.svg
[url-travis-master]: https://travis-ci.org/ibm-cloud-security/appid-serversdk-nodejs

[img-coveralls-master]: https://coveralls.io/repos/github/ibm-cloud-security/appid-serversdk-nodejs/badge.svg
[url-coveralls-master]: https://coveralls.io/github/ibm-cloud-security/appid-serversdk-nodejs

[img-codacy]: https://api.codacy.com/project/badge/Grade/3156f40a37cb4026a443082fc1afcaa4?branch=master
[url-codacy]: https://www.codacy.com/app/ibm-cloud-security/appid-serversdk-nodejs
4 changes: 2 additions & 2 deletions test/common-util-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ describe("/lib/utils/common-util", function () {
const stringName = 'testString';
const formData = {
"grant_type": "urn:ibm:params:oauth:grant-type:apikey",
"apikey": "dummyAPIKEY-FCUIw1hgPp31iRjcYllURtWeelFBgHYm4-key"
"apikey": "2hntsFCUIw1hgPp31iRjcYllURtWeelFBgHYm4-ol3XB"
}

const urlEncodedData = 'grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=dummyAPIKEY-FCUIw1hgPp31iRjcYllURtWeelFBgHYm4-key';
const urlEncodedData = 'grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=2hntsFCUIw1hgPp31iRjcYllURtWeelFBgHYm4-ol3XB';

it('should successfully convert the formData to URLencoded format', () => {
expect(commonUtil.jsonToURLencodedForm(formData)).to.equal(urlEncodedData);
Expand Down

0 comments on commit bbb7502

Please sign in to comment.