froth-webdriverio-framework 1.0.59 → 1.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/readTestdata.js +1 -1
- package/package.json +1 -1
package/api/readTestdata.js
CHANGED
|
@@ -5,7 +5,7 @@ const getLoginToken = require('../api/loginapi.js');
|
|
|
5
5
|
// Function to get data from the API using the Bearer token
|
|
6
6
|
async function getDataById(frothUrl, token, id) {
|
|
7
7
|
|
|
8
|
-
if (id != 0 || id != null || id != undefined)
|
|
8
|
+
if (id != 0 || id != null || id != undefined|| id != "null") {
|
|
9
9
|
const url = `https://${frothUrl}/api/testdata-retrieve/${id}/`;
|
|
10
10
|
|
|
11
11
|
try {
|