mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
feat: add crypto account type to demo data (#555)
* feat: add crypto account type to demo data * fix: set currency to BTC, revert schema migration change and fix tests * fix: update dates in time_series tests
This commit is contained in:
committed by
GitHub
parent
f904d9d062
commit
49d1fe0e11
@@ -39,12 +39,12 @@ class TimeSeriesTest < ActiveSupport::TestCase
|
||||
expected_values = {
|
||||
values: [
|
||||
{
|
||||
date: "2024-03-17",
|
||||
date: 1.day.ago.to_date,
|
||||
value: { amount: "100.0", currency: "USD" },
|
||||
trend: { type: "normal", direction: "flat", value: { amount: "0.0", currency: "USD" }, percent: 0.0 }
|
||||
},
|
||||
{
|
||||
date: "2024-03-18",
|
||||
date: Date.current,
|
||||
value: { amount: "200.0", currency: "USD" },
|
||||
trend: { type: "normal", direction: "up", value: { amount: "100.0", currency: "USD" }, percent: 100.0 }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user