For the 7th test, I was checking out the endpoint.test.js
it("should return a minified JSON object.", async () => {
const res = await axios(http://${dockerBridgeIP}:80/);
// TODO: Finish this test
throw new Error("TypeError: Object(...) is not a function");
});
From:
https://github.com/liatrio/github-actions/blob/master/apprentice-action/tests/endpoint.test.js
It looks like there isn't code to check, and it will usually give an error?
I can modify to be minified JSON using
JSON.stringify(JSON.parse())
or by removing the Spaces in My name is... However, that then fails the "My name is..." test.
1) Tests to the "/" endpoint
should return a minified JSON object.:
Error: TypeError: Object(...) is not a function
at Context. (/home/runner/work/_actions/liatrio/github-actions/master/apprentice-action/tests/endpoint.test.js:38:15)
For the 7th test, I was checking out the endpoint.test.js it("should return a minified JSON object.", async () => { const res = await axios(
http://${dockerBridgeIP}:80/
); // TODO: Finish this test throw new Error("TypeError: Object(...) is not a function"); }); From: https://github.com/liatrio/github-actions/blob/master/apprentice-action/tests/endpoint.test.js It looks like there isn't code to check, and it will usually give an error? I can modify to be minified JSON using JSON.stringify(JSON.parse()) or by removing the Spaces in My name is... However, that then fails the "My name is..." test.1) Tests to the "/" endpoint should return a minified JSON object.: Error: TypeError: Object(...) is not a function at Context. (/home/runner/work/_actions/liatrio/github-actions/master/apprentice-action/tests/endpoint.test.js:38:15)