Skip to content

Commit

Permalink
Merge pull request #307 from geoadmin/develop
Browse files Browse the repository at this point in the history
New Release v0.3.1 - #patch
  • Loading branch information
ltshb authored Nov 23, 2022
2 parents 73184bd + b06a211 commit 360aab9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
"dev": "vite --port 8080",
"preview": "npm run build:prod && vite preview --port 8080 --outDir dist/production",
"preview:dev": "npm run build:dev && vite preview --port 8080 --outDir dist/development",
"preview:int": "npm run build:int && vite preview --port 8080 --outDir dist/integration",
"test:unit": "vitest --run --environment jsdom",
"test:unit:watch": "vitest --environment jsdom",
"test:e2e": "start-server-and-test dev 8080 'cypress open'",
"test:e2e:tablet": "start-server-and-test preview 8080 'cypress open --config viewportWidth=768,viewportHeight=1024'",
"test:e2e:desktop": "start-server-and-test preview 8080 'cypress open --config viewportWidth=1440,viewportHeight=900'",
"test:e2e:ci": "start-server-and-test preview 8080 'cypress run'",
"test:e2e:ci:dev": "start-server-and-test preview:dev 8080 'cypress run'",
"test:e2e:ci:int": "start-server-and-test preview:int 8080 'cypress run'",
"test:e2e:ci:prod": "npm run test:e2e:ci",
"test:ci": "npm run test:unit && npm run test:e2e:ci",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
Expand Down
4 changes: 3 additions & 1 deletion tests/e2e-cypress/integration/mouseposition.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ const defaultCenter = [47.5, 7.5]
* @param {String} text A string containing an LV95 or LV03 coordinate.
*/
function parseLV(text) {
const matches = text.match(/([-\d'.]+), ([-\d'.]+)$/)
const matches = text.match(/([-\d'.]+),\s*([-\d'.]+)$/)
expect(matches).be.an('array', `Cannot parse LV coordinate from ${text}`)
expect(matches.length).not.be.eq(0, `Cannot parse LV coordinate from ${text}`)
return matches
.slice(1)
.map((value) => value.replace(/'/g, ''))
Expand Down

0 comments on commit 360aab9

Please sign in to comment.