[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 01/03: reformat
From: |
gnunet |
Subject: |
[taler-wallet-core] 01/03: reformat |
Date: |
Mon, 30 Mar 2020 12:39:42 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit ad661a63f73606a91b6d6078958c5d0c01d3c05d
Author: Florian Dold <address@hidden>
AuthorDate: Mon Mar 30 15:52:04 2020 +0530
reformat
---
package.json | 3 ++-
src/wallet-test.ts | 21 ++++++++-------------
2 files changed, 10 insertions(+), 14 deletions(-)
diff --git a/package.json b/package.json
index 387f1c46..33be165a 100644
--- a/package.json
+++ b/package.json
@@ -16,7 +16,8 @@
"taler-wallet-cli": "./bin/taler-wallet-cli"
},
"scripts": {
- "build": "make tsc"
+ "build": "make tsc",
+ "pretty": "prettier --config .prettierrc --write 'src/**.ts'"
},
"files": [
"AUTHORS",
diff --git a/src/wallet-test.ts b/src/wallet-test.ts
index a465db51..d1551b09 100644
--- a/src/wallet-test.ts
+++ b/src/wallet-test.ts
@@ -31,21 +31,16 @@ function a(x: string): AmountJson {
return amt;
}
-
-function fakeAci(
- current: string,
- feeDeposit: string,
-): AvailableCoinInfo {
+function fakeAci(current: string, feeDeposit: string): AvailableCoinInfo {
return {
availableAmount: a(current),
coinPub: "foobar",
denomPub: "foobar",
feeDeposit: a(feeDeposit),
- }
-
+ };
}
-test("coin selection 1", t => {
+test("coin selection 1", (t) => {
const acis: AvailableCoinInfo[] = [
fakeAci("EUR:1.0", "EUR:0.1"),
fakeAci("EUR:1.0", "EUR:0.0"),
@@ -60,7 +55,7 @@ test("coin selection 1", t => {
t.pass();
});
-test("coin selection 2", t => {
+test("coin selection 2", (t) => {
const acis: AvailableCoinInfo[] = [
fakeAci("EUR:1.0", "EUR:0.5"),
fakeAci("EUR:1.0", "EUR:0.0"),
@@ -76,7 +71,7 @@ test("coin selection 2", t => {
t.pass();
});
-test("coin selection 3", t => {
+test("coin selection 3", (t) => {
const acis: AvailableCoinInfo[] = [
fakeAci("EUR:1.0", "EUR:0.5"),
fakeAci("EUR:1.0", "EUR:0.5"),
@@ -92,7 +87,7 @@ test("coin selection 3", t => {
t.pass();
});
-test("coin selection 4", t => {
+test("coin selection 4", (t) => {
const acis: AvailableCoinInfo[] = [
fakeAci("EUR:1.0", "EUR:0.5"),
fakeAci("EUR:1.0", "EUR:0.5"),
@@ -107,7 +102,7 @@ test("coin selection 4", t => {
t.pass();
});
-test("coin selection 5", t => {
+test("coin selection 5", (t) => {
const acis: AvailableCoinInfo[] = [
fakeAci("EUR:1.0", "EUR:0.5"),
fakeAci("EUR:1.0", "EUR:0.5"),
@@ -118,7 +113,7 @@ test("coin selection 5", t => {
t.pass();
});
-test("coin selection 6", t => {
+test("coin selection 6", (t) => {
const acis: AvailableCoinInfo[] = [
fakeAci("EUR:1.0", "EUR:0.5"),
fakeAci("EUR:1.0", "EUR:0.5"),
--
To stop receiving notification emails like this one, please contact
address@hidden.