Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 2f79153

Browse files
committed
refactor: fix naming test error
1 parent ea9b660 commit 2f79153

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

test/groupher_server_web/mutation/cms/articles/job_test.exs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ defmodule GroupherServer.Test.Mutation.Articles.Job do
5858
exp
5959
education
6060
field
61-
origialCommunity {
61+
originalCommunity {
6262
id
6363
}
6464
communities {
@@ -68,6 +68,7 @@ defmodule GroupherServer.Test.Mutation.Articles.Job do
6868
}
6969
}
7070
"""
71+
@tag :wip2
7172
test "create job with valid attrs and make sure author exsit" do
7273
{:ok, user} = db_insert(:user)
7374
user_conn = simu_conn(:user, user)
@@ -87,7 +88,7 @@ defmodule GroupherServer.Test.Mutation.Articles.Job do
8788
{:ok, found} = ORM.find(CMS.Job, created["id"])
8889

8990
assert created["id"] == to_string(found.id)
90-
assert created["origialCommunity"]["id"] == to_string(community.id)
91+
assert created["originalCommunity"]["id"] == to_string(community.id)
9192

9293
assert created["id"] == to_string(found.id)
9394
end

test/groupher_server_web/mutation/cms/articles/post_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ defmodule GroupherServer.Test.Mutation.Articles.Post do
3838
title
3939
body
4040
id
41-
origialCommunity {
41+
originalCommunity {
4242
id
4343
}
4444
}
@@ -56,7 +56,7 @@ defmodule GroupherServer.Test.Mutation.Articles.Post do
5656
{:ok, post} = ORM.find(CMS.Post, created["id"])
5757

5858
assert created["id"] == to_string(post.id)
59-
assert created["origialCommunity"]["id"] == to_string(community.id)
59+
assert created["originalCommunity"]["id"] == to_string(community.id)
6060

6161
assert {:ok, _} = ORM.find_by(CMS.Author, user_id: user.id)
6262
end

test/groupher_server_web/mutation/cms/articles/repo_test.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ defmodule GroupherServer.Test.Mutation.Articles.Repo do
5959
id
6060
title
6161
desc
62-
origialCommunity {
62+
originalCommunity {
6363
id
6464
}
6565
}
@@ -79,7 +79,7 @@ defmodule GroupherServer.Test.Mutation.Articles.Repo do
7979
assert created["id"] == to_string(repo.id)
8080

8181
assert created["id"] == to_string(repo.id)
82-
assert created["origialCommunity"]["id"] == to_string(community.id)
82+
assert created["originalCommunity"]["id"] == to_string(community.id)
8383
assert {:ok, _} = ORM.find_by(CMS.Author, user_id: user.id)
8484
end
8585

@@ -126,7 +126,7 @@ defmodule GroupherServer.Test.Mutation.Articles.Repo do
126126
title
127127
readme
128128
desc
129-
origialCommunity {
129+
originalCommunity {
130130
id
131131
}
132132
}

0 commit comments

Comments
 (0)