Skip to content

Commit

Permalink
Merge branch 'master' into navi
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Aug 16, 2023
2 parents aca7bcb + 624625a commit 3f6b897
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
globals: {
SOURCE_VERSION: '0.0.test',
},
moduleNameMapper: {
'@/(.*)$': '<rootDir>/src/$1',
config: '<rootDir>/config.js',
Expand Down
2 changes: 1 addition & 1 deletion src/api/Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class ApiImpl implements Api {
body: JSON.stringify(completeRequest),
headers: {
'User-Agent': `GraphHopperMaps/${SOURCE_VERSION}`,
'Accept': 'application/json',
Accept: 'application/json',
'Content-Type': 'application/json',
},
})
Expand Down
2 changes: 1 addition & 1 deletion webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ module.exports = {
}),
new webpack.DefinePlugin({
GIT_SHA: JSON.stringify(gitSHA),
SOURCE_VERSION: package.version
SOURCE_VERSION: JSON.stringify(package.version),
}),
],

Expand Down

0 comments on commit 3f6b897

Please sign in to comment.