-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove system_date_time from device optional fields
- Loading branch information
1 parent
56b9038
commit cddae05
Showing
4 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
defmodule Onvif.DeviceTest do | ||
use ExUnit.Case, async: true | ||
|
||
@moduletag capture_log: true | ||
|
||
describe "to_struct/1" do | ||
test "should parse given map to a valid device struct" do | ||
device_map = Onvif.Factory.device() |> Jason.encode!() |> Jason.decode!() | ||
{:ok, device} = Onvif.Device.to_struct(device_map) | ||
assert device == Onvif.Factory.device() | ||
end | ||
end | ||
end |
File renamed without changes.