Update C_Prescription.class.php to display no of tablets left in stock, with expiry date, in the drop down menu when prescribing a drug to a patient. #1523
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: JS Unit Test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
permissions: | |
contents: read | |
jobs: | |
js_unit_test: | |
runs-on: ubuntu-22.04 | |
name: JS Unit Test | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install npm package | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: npm install | |
run: | | |
failTest=false | |
npm install || failTest=true | |
if $failTest; then | |
exit 1 | |
fi | |
- name: Run Unit Tests | |
run: | | |
failTest=false | |
npm run test:js || failTest=true | |
if $failTest; then | |
exit 1 | |
fi |