diff --git a/README.md b/README.md index 77f0a63..5c00ee4 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,6 @@ -# Manual Firebase Build & Deploy -`npm run build && firebase deploy` - -# Run Vue.js Unit Tests -`npm run test:unit` - -# Run Firebase Integration Tests -`cd functions && npm run test` - -# Run Locally +# Irish Rail Tracker +## Setup +### Local Installation 1. Ensure you have Java 11 or greater installed. 2. Run `npm install` in the traintracker directory. 3. Run `npm install` in the functions directory. @@ -18,9 +11,17 @@ You will need to click the "Populate Database" and "Fetch Data" buttons to get d To kill the npm process do `CTRL + C` in your terminal. To kill the firebase emulators run `fg` to bring the process to the foreground, then do `CTRL + C` -# Links +### Manual Firebase Deployment +`npm run build && firebase deploy` + +## Testing +### Vue.js Unit Tests +`npm run test:unit` + +## Firebase Integration Tests +`cd functions && npm run test` + +## Links Deployed Site: [irishrailtracker.web.app](https://irishrailtracker.web.app/) - Jira: [trainenthusiasts.atlassian.net](https://trainenthusiasts.atlassian.net/jira/software/projects/TE/boards/1) - -GitHub: [github.com/0hAodha/traintracker](https://github.com/0hAodha/traintracker) +GitHub: [github.com/0hAodha/traintracker](https://github.com/0hAodha/traintracker) \ No newline at end of file diff --git a/functions/test/index.test.js b/functions/test/index.test.js index 452082b..fbe0955 100644 --- a/functions/test/index.test.js +++ b/functions/test/index.test.js @@ -18,6 +18,12 @@ describe('Firebase cloud function tests', function() { expect(result.body.data[0]).haveOwnProperty('TrainCode'); expect(result.body.data[0]).haveOwnProperty('TrainDate'); expect(result.body.data[0]).haveOwnProperty('TrainType'); + expect(result.body.data[0]).haveOwnProperty('Destination'); + expect(result.body.data[0]).haveOwnProperty('Origin'); + + if (result.body.data[0]["TrainStatus"] != "N") { + expect(result.body.data[0]).haveOwnProperty('Punctuality'); + } }), this.timeout(100000); diff --git a/src/components/TrainSidebar.vue b/src/components/TrainSidebar.vue index 2dbd71e..a2994f9 100644 --- a/src/components/TrainSidebar.vue +++ b/src/components/TrainSidebar.vue @@ -53,14 +53,14 @@
Public Message:
Public Message: {{ store.selectedTrain["PublicMessage"][0] }}
Public Message:
{{ store.selectedTrain["PublicMessage"][0] }}
Public Message:
Public Message: {{ store.selectedTrain["PublicMessage"][0] }}
Public Message:
{{ store.selectedTrain["PublicMessage"][0] }}
Email Address
- +Password (6+ characters)