Skip to content
This repository has been archived by the owner on Feb 5, 2020. It is now read-only.

Airport sorting #37

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
pool:
vmImage: ubuntu-16.04
trigger:
- master
steps:
- task: Npm@1
inputs:
command: install
- script: 'npm test'
displayName: 'Run unit tests'
continueOnError: true
- task: PublishTestResults@2
displayName: 'Publish Test Results'
condition: succeededOrFailed()
inputs:
testResultsFiles: $(System.DefaultWorkingDirectory)/test-report.xml
- task: PublishCodeCoverageResults@1
displayName: 'Publish Code Coverage'
condition: 'in(variables[''Agent.JobStatus''], ''Succeeded'')'
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/coverage/*coverage.xml'
reportDirectory: $(System.DefaultWorkingDirectory)/coverage
- task: ArchiveFiles@2
displayName: 'Archive sources'
inputs:
rootFolderOrFile: $(Build.SourcesDirectory)
includeRootFolder: false
- task: CopyFiles@2
displayName: 'Copy ARM templates'
inputs:
SourceFolder: deployment
Contents: '*.json'
TargetFolder: $(build.artifactstagingdirectory)/Templates
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
2 changes: 1 addition & 1 deletion src/services/airports.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class AirportsService {
}

getAll(){
return this._airports.filter(a => a.code).map(avoidEmptyCity);
return this._airports.filter(a => a.code).map(avoidEmptyCity).sort((a, b) => (a.city > b.city) ? 1 : -1);
}

getByCode(code) {
Expand Down
2 changes: 1 addition & 1 deletion src/services/book.form.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class BookFormService {
return {
kinds: [
{ text:'Round trip', active: true},
{ text: 'One way' },
{ text: 'One way ' },
{ text: 'Multi-city' }
],
today: moment().toDate(),
Expand Down