mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-05-20 10:08:07 +00:00
13 lines
322 B
Elixir
13 lines
322 B
Elixir
defmodule LiveBeats.MP3StatTest do
|
|
use ExUnit.Case, async: true
|
|
|
|
alias LiveBeats.MP3Stat
|
|
|
|
test "parse/1 with valid mp3" do
|
|
{:ok, %MP3Stat{} = stat} = MP3Stat.parse("test/support/fixtures/silence1s.mp3")
|
|
assert stat.duration == 1
|
|
assert stat.title == "Silence"
|
|
assert stat.artist == "Anon"
|
|
end
|
|
end
|