Skip to content

Commit

Permalink
Import ExUnit.Assertions on mock files
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraBeatris committed Dec 5, 2023
1 parent 71d5aa6 commit 4783777
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion test/support/audit_logs_client_mock.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule WorkOS.AuditLogs.ClientMock do
@moduledoc false

use ExUnit.Case
import ExUnit.Assertions, only: [assert: 1]

def create_event(context, opts \\ []) do
Tesla.Mock.mock(fn request ->
Expand Down
2 changes: 1 addition & 1 deletion test/support/directory_sync_client_mock.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule WorkOS.DirectorySync.ClientMock do
@moduledoc false

use ExUnit.Case
import ExUnit.Assertions, only: [assert: 1]

@directory_group_response %{
"id" => "dir_grp_123",
Expand Down
2 changes: 1 addition & 1 deletion test/support/events_client_mock.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule WorkOS.Events.ClientMock do
@moduledoc false

use ExUnit.Case
import ExUnit.Assertions, only: [assert: 1]

def list_events(context, opts \\ []) do
Tesla.Mock.mock(fn request ->
Expand Down
2 changes: 1 addition & 1 deletion test/support/organization_domains_client_mock.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule WorkOS.OrganizationDomains.ClientMock do
@moduledoc false

use ExUnit.Case
import ExUnit.Assertions, only: [assert: 1]

@organization_domain_mock %{
"object" => "organization_domain",
Expand Down
2 changes: 1 addition & 1 deletion test/support/organizations_client_mock.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule WorkOS.Organizations.ClientMock do
@moduledoc false

use ExUnit.Case
import ExUnit.Assertions, only: [assert: 1]

def list_organizations(context, opts \\ []) do
Tesla.Mock.mock(fn request ->
Expand Down
2 changes: 1 addition & 1 deletion test/support/passwordless_client_mock.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule WorkOS.Passwordless.ClientMock do
@moduledoc false

use ExUnit.Case
import ExUnit.Assertions, only: [assert: 1]

def create_session(context, opts \\ []) do
Tesla.Mock.mock(fn request ->
Expand Down
2 changes: 1 addition & 1 deletion test/support/portal_client_mock.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule WorkOS.Portal.ClientMock do
@moduledoc false

use ExUnit.Case
import ExUnit.Assertions, only: [assert: 1]

def generate_link(context, opts \\ []) do
Tesla.Mock.mock(fn request ->
Expand Down
2 changes: 1 addition & 1 deletion test/support/sso_client_mock.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule WorkOS.SSO.ClientMock do
@moduledoc false

use ExUnit.Case
import ExUnit.Assertions, only: [assert: 1]

def get_profile_and_token(context, opts \\ []) do
Tesla.Mock.mock(fn request ->
Expand Down
2 changes: 1 addition & 1 deletion test/support/user_management_client_mock.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule WorkOS.UserManagement.ClientMock do
@moduledoc false

use ExUnit.Case
import ExUnit.Assertions, only: [assert: 1]

@user_mock %{
"object" => "user",
Expand Down

0 comments on commit 4783777

Please sign in to comment.