From d7fd4bd61d1406eca27fa8e0af4c0cc4fb7076e4 Mon Sep 17 00:00:00 2001 From: librelois <elois@ifee.fr> Date: Sun, 12 Nov 2017 20:24:39 +0100 Subject: [PATCH] expend TestUser typage --- test/integration/tools/TestUser.ts | 2 +- test/integration/ws2p_cluster.ts | 3 ++- test/integration/ws2p_doc_sharing.ts | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/test/integration/tools/TestUser.ts b/test/integration/tools/TestUser.ts index f58fd8d54..8c6cf1303 100644 --- a/test/integration/tools/TestUser.ts +++ b/test/integration/tools/TestUser.ts @@ -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) await this.sendTX(raw) } diff --git a/test/integration/ws2p_cluster.ts b/test/integration/ws2p_cluster.ts index 08c976f75..29b651190 100644 --- a/test/integration/ws2p_cluster.ts +++ b/test/integration/ws2p_cluster.ts @@ -8,6 +8,7 @@ import { } from "./tools/toolbox" import {WS2PCluster} from "../../app/modules/ws2p/lib/WS2PCluster" import {WS2PConstants} from "../../app/modules/ws2p/lib/constants" +import { TestUser } from './tools/TestUser'; const assert = require('assert') @@ -18,7 +19,7 @@ describe("WS2P cluster", function() { const now = 1500000000 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 tacKeyring = { pub: '2LvDg21dVXvetTD9GdkPLURavLYEqP3whauvPWX4c2qc', sec: '2HuRLWgKgED1bVio1tdpeXrf7zuUszv1yPHDsDj7kcMC4rVSN9RC58ogjtKNfTbH1eFz7rn38U1PywNs3m6Q7UxE'} const tocKeyring = { pub: 'DKpQPUL4ckzXYdnDRvCRKAm1gNvSdmAXnTrJZ7LvM5Qo', sec: '64EYRvdPpTfLGGmaX5nijLXRqWXaVz8r1Z1GtaahXwVSJGQRn7tqkxLb288zwSYzELMEG5ZhXSBYSxsTsz1m9y8F'} diff --git a/test/integration/ws2p_doc_sharing.ts b/test/integration/ws2p_doc_sharing.ts index 9bf604335..be10fa17b 100644 --- a/test/integration/ws2p_doc_sharing.ts +++ b/test/integration/ws2p_doc_sharing.ts @@ -1,3 +1,4 @@ +import { TestUser } from './tools/TestUser'; import {simpleTestingConf, simpleTestingServer, simpleUser, simpleWS2PNetwork, TestingServer} from "./tools/toolbox" import {WS2PConstants} from "../../app/modules/ws2p/lib/constants" @@ -10,7 +11,7 @@ describe("WS2P doc sharing", function() { const now = 1500000000 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 tacKeyring = { pub: '2LvDg21dVXvetTD9GdkPLURavLYEqP3whauvPWX4c2qc', sec: '2HuRLWgKgED1bVio1tdpeXrf7zuUszv1yPHDsDj7kcMC4rVSN9RC58ogjtKNfTbH1eFz7rn38U1PywNs3m6Q7UxE'} const tocKeyring = { pub: 'DKpQPUL4ckzXYdnDRvCRKAm1gNvSdmAXnTrJZ7LvM5Qo', sec: '64EYRvdPpTfLGGmaX5nijLXRqWXaVz8r1Z1GtaahXwVSJGQRn7tqkxLb288zwSYzELMEG5ZhXSBYSxsTsz1m9y8F'} -- GitLab