Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
enedis_sge_konnector
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
LLLE_Project
enedis_sge_konnector
Merge requests
!42
fix: handle pdl starting with 0
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix: handle pdl starting with 0
23-handle-13-digits-pdl
into
main
Overview
3
Commits
4
Pipelines
4
Changes
11
All threads resolved!
Show all comments
Merged
Bastien DUMONT
requested to merge
23-handle-13-digits-pdl
into
main
1 year ago
Overview
3
Commits
4
Pipelines
4
Changes
11
All threads resolved!
Show all comments
Expand
Related to #23
Edited
1 year ago
by
Bastien DUMONT
0
0
Merge request reports
Compare
main
version 1
78cfc649
1 year ago
main (base)
and
version 1
latest version
62425158
4 commits,
1 year ago
version 1
78cfc649
3 commits,
1 year ago
11 files
+
58
−
21
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
Search (e.g. *.vue) (Ctrl+P)
__tests__/helpers/parsing.spec.js
+
17
−
0
Options
@@ -11,7 +11,9 @@ const {
parseValue
,
removeMultipleSpaces
,
removeAddressNumber
,
parsePointId
,
}
=
require
(
'
../../src/helpers/parsing
'
)
describe
(
'
parsing
'
,
()
=>
{
it
(
'
should parse userPdl
'
,
()
=>
{
const
result
=
{
@@ -222,4 +224,19 @@ describe('parsing', () => {
expect
(
reply
).
toBe
(
'
rue du lac
'
)
})
})
describe
(
'
parsePointId
'
,
()
=>
{
it
(
'
should test a regular point id
'
,
()
=>
{
const
point
=
parsePointId
(
'
12345678901234
'
)
expect
(
point
).
toBe
(
'
12345678901234
'
)
expect
(
point
.
length
).
toBe
(
14
)
})
it
(
'
should test a point id starting with 0
'
,
()
=>
{
const
input
=
'
7123456789012
'
expect
(
input
.
length
).
toBe
(
13
)
const
point
=
parsePointId
(
input
)
expect
(
point
).
toBe
(
'
07123456789012
'
)
expect
(
point
.
length
).
toBe
(
14
)
})
})
})
Loading