Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
duniter
Commits
d7fd4bd6
Unverified
Commit
d7fd4bd6
authored
7 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
expend TestUser typage
parent
ca4d7c46
Branches
Branches containing commit
Tags
Tags containing commit
3 merge requests
!1220
Stable/ws2p v1.1 trymerge
,
!1208
Stable/ws2p v1.1
,
!1195
[enh] #1193 Refactoring test user.js to TestUser.ts
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
test/integration/tools/TestUser.ts
+1
-1
1 addition, 1 deletion
test/integration/tools/TestUser.ts
test/integration/ws2p_cluster.ts
+2
-1
2 additions, 1 deletion
test/integration/ws2p_cluster.ts
test/integration/ws2p_doc_sharing.ts
+2
-1
2 additions, 1 deletion
test/integration/ws2p_doc_sharing.ts
with
5 additions
and
3 deletions
test/integration/tools/TestUser.ts
+
1
−
1
View file @
d7fd4bd6
...
@@ -183,7 +183,7 @@ export class TestUser {
...
@@ -183,7 +183,7 @@ export class TestUser {
};
};
};
};
public
async
sendMoney
(
amount
:
number
,
recipient
:
string
,
comment
?:
string
)
{
public
async
sendMoney
(
amount
:
number
,
recipient
:
TestUser
,
comment
?:
string
)
{
const
raw
=
await
this
.
prepareITX
(
amount
,
recipient
,
comment
)
const
raw
=
await
this
.
prepareITX
(
amount
,
recipient
,
comment
)
await
this
.
sendTX
(
raw
)
await
this
.
sendTX
(
raw
)
}
}
...
...
This diff is collapsed.
Click to expand it.
test/integration/ws2p_cluster.ts
+
2
−
1
View file @
d7fd4bd6
...
@@ -8,6 +8,7 @@ import {
...
@@ -8,6 +8,7 @@ import {
}
from
"
./tools/toolbox
"
}
from
"
./tools/toolbox
"
import
{
WS2PCluster
}
from
"
../../app/modules/ws2p/lib/WS2PCluster
"
import
{
WS2PCluster
}
from
"
../../app/modules/ws2p/lib/WS2PCluster
"
import
{
WS2PConstants
}
from
"
../../app/modules/ws2p/lib/constants
"
import
{
WS2PConstants
}
from
"
../../app/modules/ws2p/lib/constants
"
import
{
TestUser
}
from
'
./tools/TestUser
'
;
const
assert
=
require
(
'
assert
'
)
const
assert
=
require
(
'
assert
'
)
...
@@ -18,7 +19,7 @@ describe("WS2P cluster", function() {
...
@@ -18,7 +19,7 @@ describe("WS2P cluster", function() {
const
now
=
1500000000
const
now
=
1500000000
let
s1
:
TestingServer
,
s2
:
TestingServer
,
s3
:
TestingServer
let
s1
:
TestingServer
,
s2
:
TestingServer
,
s3
:
TestingServer
let
cat
:
any
,
tac
:
any
,
toc
:
any
let
cat
:
TestUser
,
tac
:
TestUser
,
toc
:
TestUser
const
catKeyring
=
{
pub
:
'
HgTTJLAQ5sqfknMq7yLPZbehtuLSsKj9CxWN7k8QvYJd
'
,
sec
:
'
51w4fEShBk1jCMauWu4mLpmDVfHksKmWcygpxriqCEZizbtERA6de4STKRkQBpxmMUwsKXRjSzuQ8ECwmqN1u2DP
'
}
const
catKeyring
=
{
pub
:
'
HgTTJLAQ5sqfknMq7yLPZbehtuLSsKj9CxWN7k8QvYJd
'
,
sec
:
'
51w4fEShBk1jCMauWu4mLpmDVfHksKmWcygpxriqCEZizbtERA6de4STKRkQBpxmMUwsKXRjSzuQ8ECwmqN1u2DP
'
}
const
tacKeyring
=
{
pub
:
'
2LvDg21dVXvetTD9GdkPLURavLYEqP3whauvPWX4c2qc
'
,
sec
:
'
2HuRLWgKgED1bVio1tdpeXrf7zuUszv1yPHDsDj7kcMC4rVSN9RC58ogjtKNfTbH1eFz7rn38U1PywNs3m6Q7UxE
'
}
const
tacKeyring
=
{
pub
:
'
2LvDg21dVXvetTD9GdkPLURavLYEqP3whauvPWX4c2qc
'
,
sec
:
'
2HuRLWgKgED1bVio1tdpeXrf7zuUszv1yPHDsDj7kcMC4rVSN9RC58ogjtKNfTbH1eFz7rn38U1PywNs3m6Q7UxE
'
}
const
tocKeyring
=
{
pub
:
'
DKpQPUL4ckzXYdnDRvCRKAm1gNvSdmAXnTrJZ7LvM5Qo
'
,
sec
:
'
64EYRvdPpTfLGGmaX5nijLXRqWXaVz8r1Z1GtaahXwVSJGQRn7tqkxLb288zwSYzELMEG5ZhXSBYSxsTsz1m9y8F
'
}
const
tocKeyring
=
{
pub
:
'
DKpQPUL4ckzXYdnDRvCRKAm1gNvSdmAXnTrJZ7LvM5Qo
'
,
sec
:
'
64EYRvdPpTfLGGmaX5nijLXRqWXaVz8r1Z1GtaahXwVSJGQRn7tqkxLb288zwSYzELMEG5ZhXSBYSxsTsz1m9y8F
'
}
...
...
This diff is collapsed.
Click to expand it.
test/integration/ws2p_doc_sharing.ts
+
2
−
1
View file @
d7fd4bd6
import
{
TestUser
}
from
'
./tools/TestUser
'
;
import
{
simpleTestingConf
,
simpleTestingServer
,
simpleUser
,
simpleWS2PNetwork
,
TestingServer
}
from
"
./tools/toolbox
"
import
{
simpleTestingConf
,
simpleTestingServer
,
simpleUser
,
simpleWS2PNetwork
,
TestingServer
}
from
"
./tools/toolbox
"
import
{
WS2PConstants
}
from
"
../../app/modules/ws2p/lib/constants
"
import
{
WS2PConstants
}
from
"
../../app/modules/ws2p/lib/constants
"
...
@@ -10,7 +11,7 @@ describe("WS2P doc sharing", function() {
...
@@ -10,7 +11,7 @@ describe("WS2P doc sharing", function() {
const
now
=
1500000000
const
now
=
1500000000
let
s1
:
TestingServer
,
s2
:
TestingServer
,
wss
:
any
let
s1
:
TestingServer
,
s2
:
TestingServer
,
wss
:
any
let
cat
:
any
,
tac
:
any
,
toc
:
any
let
cat
:
TestUser
,
tac
:
TestUser
,
toc
:
TestUser
const
catKeyring
=
{
pub
:
'
HgTTJLAQ5sqfknMq7yLPZbehtuLSsKj9CxWN7k8QvYJd
'
,
sec
:
'
51w4fEShBk1jCMauWu4mLpmDVfHksKmWcygpxriqCEZizbtERA6de4STKRkQBpxmMUwsKXRjSzuQ8ECwmqN1u2DP
'
}
const
catKeyring
=
{
pub
:
'
HgTTJLAQ5sqfknMq7yLPZbehtuLSsKj9CxWN7k8QvYJd
'
,
sec
:
'
51w4fEShBk1jCMauWu4mLpmDVfHksKmWcygpxriqCEZizbtERA6de4STKRkQBpxmMUwsKXRjSzuQ8ECwmqN1u2DP
'
}
const
tacKeyring
=
{
pub
:
'
2LvDg21dVXvetTD9GdkPLURavLYEqP3whauvPWX4c2qc
'
,
sec
:
'
2HuRLWgKgED1bVio1tdpeXrf7zuUszv1yPHDsDj7kcMC4rVSN9RC58ogjtKNfTbH1eFz7rn38U1PywNs3m6Q7UxE
'
}
const
tacKeyring
=
{
pub
:
'
2LvDg21dVXvetTD9GdkPLURavLYEqP3whauvPWX4c2qc
'
,
sec
:
'
2HuRLWgKgED1bVio1tdpeXrf7zuUszv1yPHDsDj7kcMC4rVSN9RC58ogjtKNfTbH1eFz7rn38U1PywNs3m6Q7UxE
'
}
const
tocKeyring
=
{
pub
:
'
DKpQPUL4ckzXYdnDRvCRKAm1gNvSdmAXnTrJZ7LvM5Qo
'
,
sec
:
'
64EYRvdPpTfLGGmaX5nijLXRqWXaVz8r1Z1GtaahXwVSJGQRn7tqkxLb288zwSYzELMEG5ZhXSBYSxsTsz1m9y8F
'
}
const
tocKeyring
=
{
pub
:
'
DKpQPUL4ckzXYdnDRvCRKAm1gNvSdmAXnTrJZ7LvM5Qo
'
,
sec
:
'
64EYRvdPpTfLGGmaX5nijLXRqWXaVz8r1Z1GtaahXwVSJGQRn7tqkxLb288zwSYzELMEG5ZhXSBYSxsTsz1m9y8F
'
}
...
...
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