aboutsummaryrefslogtreecommitdiff
path: root/test/zendex/connection_test.exs
blob: 6608b44b1c1ad913030b5c4181817eb0cef654cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
defmodule Zendex.ConnectionTest do
  use ExUnit.Case, async: true

  test "setup encodes username and password correctly" do
    expected = %{authentication: "WHhYQXdlc29tZVVzZXJuYW1lWHhYOnBhc3N3b3JkMTIz",
                 base_url: ""}
    actual = Zendex.Connection.setup("", "XxXAwesomeUsernameXxX", "password123")

    assert expected == actual
  end

end