Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jalhyd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Cassiopée
jalhyd
Commits
2a1e2f64
Commit
2a1e2f64
authored
2 years ago
by
François Grand
Browse files
Options
Downloads
Patches
Plain Diff
test: see merge request
nghyd!177
1st comment
refs
nghyd#571
refs
#329
parent
28e5c819
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spec/value_ref/value_ref_deleted_module.spec.ts
+27
-0
27 additions, 0 deletions
spec/value_ref/value_ref_deleted_module.spec.ts
with
27 additions
and
0 deletions
spec/value_ref/value_ref_deleted_module.spec.ts
0 → 100644
+
27
−
0
View file @
2a1e2f64
import
{
PabChute
,
PabChuteParams
,
ParamValueMode
,
Props
,
Session
}
from
"
../../src/index
"
;
describe
(
"
référence à un nub supprimé par la suite :
"
,
()
=>
{
it
(
"
test 1
"
,
()
=>
{
// cas de figure : cf. merge request 177 (nghyd#571,jalhyd#329)
const
session
=
Session
.
getInstance
();
// const pc1: PabChute = new PabChute(new PabChuteParams(2, 0.5, 666));
const
props
=
new
Props
({
calcType
:
12
,
nullParams
:
false
});
const
pc1
:
PabChute
=
<
PabChute
>
session
.
createSessionNub
(
props
);
let
serialisedNub
:
string
=
pc1
.
serialise
({
title
:
"
newcalc
"
});
const
pc2
=
session
.
unserialiseSingleNub
(
serialisedNub
).
nub
;
const
DH_2
=
pc2
.
getParameter
(
"
DH
"
);
DH_2
.
defineReference
(
pc1
,
"
DH
"
);
session
.
deleteNub
(
pc1
);
expect
(
DH_2
.
valueMode
).
toBe
(
ParamValueMode
.
SINGLE
);
// pas de but du test, mais ça mange pas de pain
DH_2
.
setCalculated
();
serialisedNub
=
pc2
.
serialise
({
title
:
"
newcalc2
"
});
session
.
unserialiseSingleNub
(
serialisedNub
).
nub
;
expect
(
DH_2
.
valueMode
).
toBe
(
ParamValueMode
.
CALCUL
);
});
});
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment