akkounts/spec/components/wallet_summary_component_spec.rb
Râu Cao d9e767298b
All checks were successful
continuous-integration/drone/push Build is passing
Refactor admin users page, add quick stats
2023-02-13 16:32:28 +08:00

12 lines
289 B
Ruby

require "rails_helper"
RSpec.describe WalletSummaryComponent, type: :component do
it "renders the balance as a human-readable number" do
expect(
render_inline(described_class.new(balance: 2301000)) {}.css("section").to_html
).to include(
"2,301,000"
)
end
end