Solarleaf / liatrio-apprentice

0 stars 0 forks source link

GitHub Actions #7 #15

Closed Solarleaf closed 5 months ago

Solarleaf commented 5 months ago

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)

Solarleaf commented 5 months ago

Talked with Joshua, branched and fixed Test #7. Also used Version 1.0 of the tests which has 6 tests.