Add test data (#424)
This commit is contained in:
parent
6d2e3b6e40
commit
43104f81d0
@ -1 +1,2 @@
|
||||
/dist
|
||||
/test/import
|
||||
|
18
test/import/invalid-date.json
Normal file
18
test/import/invalid-date.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"meta": {
|
||||
"date": "2021-01-01T00:00:00.000Z",
|
||||
"version": "dev"
|
||||
},
|
||||
"orders": [
|
||||
{
|
||||
"currency": "USD",
|
||||
"dataSource": "YAHOO",
|
||||
"date": "<invalid>",
|
||||
"fee": 0,
|
||||
"quantity": 20,
|
||||
"symbol": "AAPL",
|
||||
"type": "BUY",
|
||||
"unitPrice": 100.0
|
||||
}
|
||||
]
|
||||
}
|
2
test/import/invalid-fee.csv
Normal file
2
test/import/invalid-fee.csv
Normal file
@ -0,0 +1,2 @@
|
||||
Date,Code,CCY,Price,Qty,Action,Amount,Fee
|
||||
16/09/2021,MSFT,USD,298.580,5,buy,1496.09,<invalid>
|
|
18
test/import/invalid-symbol.json
Normal file
18
test/import/invalid-symbol.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"meta": {
|
||||
"date": "2021-01-01T00:00:00.000Z",
|
||||
"version": "dev"
|
||||
},
|
||||
"orders": [
|
||||
{
|
||||
"currency": "USD",
|
||||
"dataSource": "YAHOO",
|
||||
"date": "2021-01-01T00:00:00.000Z",
|
||||
"fee": 0,
|
||||
"quantity": 20,
|
||||
"symbol": "<invalid>",
|
||||
"type": "BUY",
|
||||
"unitPrice": 100.0
|
||||
}
|
||||
]
|
||||
}
|
1
test/import/unexpected-format.json
Normal file
1
test/import/unexpected-format.json
Normal file
@ -0,0 +1 @@
|
||||
<invalid>
|
Loading…
x
Reference in New Issue
Block a user