1
1
defmodule MixDependencySubmission.Fetcher.MixFileTest do
2
2
use MixDependencySubmission.FixtureCase , async: false
3
3
4
+ alias Mix.SCM.Git
4
5
alias MixDependencySubmission.Fetcher.MixFile
5
6
alias MixDependencySubmission.Util
6
7
@@ -14,21 +15,46 @@ defmodule MixDependencySubmission.Fetcher.MixFileTest do
14
15
assert % {
15
16
credo: % {
16
17
scm: Hex.SCM ,
17
- mix_dep: { :credo , "~> 1.7" , [ hex: "credo" , repo: "hexpm" ] } ,
18
+ mix_dep: { :credo , "~> 1.7" , [ hex: "credo" , build: _credo_build , dest: _credo_dest , repo: "hexpm" ] } ,
18
19
scope: :runtime ,
19
20
relationship: :direct
20
21
} ,
21
22
expo: % {
22
- scm: Mix.SCM.Git ,
23
- mix_dep: { :expo , nil , [ git: "https://github.com/elixir-gettext/expo.git" , checkout: nil ] } ,
23
+ scm: Git ,
24
+ mix_dep:
25
+ { :expo , nil ,
26
+ [
27
+ git: "https://github.com/elixir-gettext/expo.git" ,
28
+ checkout: _expo_checkout ,
29
+ build: _expo_build ,
30
+ dest: _expo_dest
31
+ ] } ,
24
32
scope: :runtime ,
25
33
relationship: :direct
26
34
} ,
27
35
mime: % {
28
36
scm: Hex.SCM ,
29
- mix_dep: { :mime , "~> 2.0" , [ hex: "mime" , repo: "hexpm" ] } ,
37
+ mix_dep: { :mime , "~> 2.0" , [ hex: "mime" , build: _mime_build , dest: _mime_dest , repo: "hexpm" ] } ,
30
38
scope: :runtime ,
31
39
relationship: :direct
40
+ } ,
41
+ heroicons: % {
42
+ scope: :runtime ,
43
+ scm: Git ,
44
+ mix_dep:
45
+ { :heroicons , nil ,
46
+ [
47
+ git: "https://github.com/tailwindlabs/heroicons.git" ,
48
+ dest: _heroicons_dest ,
49
+ checkout: _heroicons_checkout ,
50
+ build: _heroicons_build ,
51
+ tag: "v2.1.5" ,
52
+ sparse: "optimized" ,
53
+ app: false ,
54
+ compile: false ,
55
+ depth: 1
56
+ ] } ,
57
+ relationship: :direct
32
58
}
33
59
} = MixFile . fetch ( )
34
60
end )
@@ -40,15 +66,15 @@ defmodule MixDependencySubmission.Fetcher.MixFileTest do
40
66
Util . in_project ( app_path , fn _mix_module ->
41
67
assert % {
42
68
credo: % {
43
- mix_dep: { :credo , "~> 1.7" , [ hex: "credo" , repo: "hexpm" ] } ,
69
+ mix_dep: { :credo , "~> 1.7" , [ hex: "credo" , build: _credo_build , dest: _credo_dest , repo: "hexpm" ] } ,
44
70
relationship: :direct ,
45
71
scm: Hex.SCM ,
46
72
scope: :runtime
47
73
} ,
48
74
path_dep: % {
49
75
scope: :runtime ,
50
76
scm: Mix.SCM.Path ,
51
- mix_dep: { :path_dep , nil , [ dest: "/tmp" , path: "/tmp" ] } ,
77
+ mix_dep: { :path_dep , nil , [ dest: "/tmp" , build: _path_dep_build , path: "/tmp" ] } ,
52
78
relationship: :direct
53
79
}
54
80
} = MixFile . fetch ( )
0 commit comments