Home
DevCentral
Search
Configure Global Search
Log In
Transactions
D1293
Change Details
Change Details
Old
New
Diff
Tested through Postman. An unit test for the Service isn't possible right now, as the service is a god object handling reading the web request and providing output. To use PSR messages interfaces should be considered a good idea to separate concerns.
Tested through Postman. ```name=Testing code,lang=javascript pm.test("Status code is 200", function () { pm.response.to.have.status(200); }); pm.test("Body matches string", function () { pm.expect(pm.response.text()).to.include("ALIVE"); }); ``` An unit test for the Service isn't possible right now, as the service is a god object handling reading the web request and providing output. To use PSR messages interfaces should be considered a good idea to separate concerns.
Tested through Postman.
```name=Testing code,lang=javascript pm.test("Status code is 200", function () { pm.response.to.have.status(200); }); pm.test("Body matches string", function () { pm.expect(pm.response.text()).to.include("ALIVE"); }); ```
An unit test for the Service isn't possible right now, as the service is a god object handling reading the web request and providing output. To use PSR messages interfaces should be considered a good idea to separate concerns.
Continue