@@ -42,49 +42,49 @@ describe("ProjectFilesProviderBase", () => {
42
42
describe ( "getPreparedFilePath" , ( ) => {
43
43
it ( "returns correct path, when fileName does not contain platforms" , ( ) => {
44
44
let filePath = "/test/filePath.ts" ,
45
- preparedPath = projectFilesProviderBase . getPreparedFilePath ( filePath ) ;
45
+ preparedPath = projectFilesProviderBase . getPreparedFilePath ( filePath , { } ) ;
46
46
47
47
assert . deepEqual ( preparedPath , expectedFilePath ) ;
48
48
} ) ;
49
49
50
50
it ( "returns correct path, when fileName contains android platform" , ( ) => {
51
51
let filePath = "/test/filePath.android.ts" ,
52
- preparedPath = projectFilesProviderBase . getPreparedFilePath ( filePath ) ;
52
+ preparedPath = projectFilesProviderBase . getPreparedFilePath ( filePath , { } ) ;
53
53
54
54
assert . deepEqual ( preparedPath , expectedFilePath ) ;
55
55
} ) ;
56
56
57
57
it ( "returns correct path, when fileName contains ios platform" , ( ) => {
58
58
let filePath = "/test/filePath.iOS.ts" ,
59
- preparedPath = projectFilesProviderBase . getPreparedFilePath ( filePath ) ;
59
+ preparedPath = projectFilesProviderBase . getPreparedFilePath ( filePath , { } ) ;
60
60
61
61
assert . deepEqual ( preparedPath , expectedFilePath ) ;
62
62
} ) ;
63
63
64
64
it ( "returns correct path, when fileName contains platform (case insensitive test)" , ( ) => {
65
65
let filePath = "/test/filePath.AnDroId.ts" ,
66
- preparedPath = projectFilesProviderBase . getPreparedFilePath ( filePath ) ;
66
+ preparedPath = projectFilesProviderBase . getPreparedFilePath ( filePath , { } ) ;
67
67
68
68
assert . deepEqual ( preparedPath , expectedFilePath ) ;
69
69
} ) ;
70
70
71
71
it ( "returns correct path, when fileName contains debug configuration" , ( ) => {
72
72
let filePath = "/test/filePath.debug.ts" ,
73
- preparedPath = projectFilesProviderBase . getPreparedFilePath ( filePath ) ;
73
+ preparedPath = projectFilesProviderBase . getPreparedFilePath ( filePath , { } ) ;
74
74
75
75
assert . deepEqual ( preparedPath , expectedFilePath ) ;
76
76
} ) ;
77
77
78
78
it ( "returns correct path, when fileName contains debug configuration (case insensitive test)" , ( ) => {
79
79
let filePath = "/test/filePath.DebUG.ts" ,
80
- preparedPath = projectFilesProviderBase . getPreparedFilePath ( filePath ) ;
80
+ preparedPath = projectFilesProviderBase . getPreparedFilePath ( filePath , { } ) ;
81
81
82
82
assert . deepEqual ( preparedPath , expectedFilePath ) ;
83
83
} ) ;
84
84
85
85
it ( "returns correct path, when fileName contains release configuration" , ( ) => {
86
86
let filePath = "/test/filePath.release.ts" ,
87
- preparedPath = projectFilesProviderBase . getPreparedFilePath ( filePath ) ;
87
+ preparedPath = projectFilesProviderBase . getPreparedFilePath ( filePath , { } ) ;
88
88
89
89
assert . deepEqual ( preparedPath , expectedFilePath ) ;
90
90
} ) ;
@@ -101,42 +101,42 @@ describe("ProjectFilesProviderBase", () => {
101
101
102
102
it ( "process file without platforms in the name" , ( ) => {
103
103
let filePath = "/test/filePath.ts" ,
104
- projectFileInfo = projectFilesProviderBase . getProjectFileInfo ( filePath , "" ) ;
104
+ projectFileInfo = projectFilesProviderBase . getProjectFileInfo ( filePath , "" , { } ) ;
105
105
106
106
assert . deepEqual ( projectFileInfo , getExpectedProjectFileInfo ( filePath , true ) ) ;
107
107
} ) ;
108
108
109
109
it ( "process file with android platform in the name" , ( ) => {
110
110
let filePath = "/test/filePath.android.ts" ,
111
- projectFileInfo = projectFilesProviderBase . getProjectFileInfo ( filePath , "android" ) ;
111
+ projectFileInfo = projectFilesProviderBase . getProjectFileInfo ( filePath , "android" , { } ) ;
112
112
113
113
assert . deepEqual ( projectFileInfo , getExpectedProjectFileInfo ( filePath , true ) ) ;
114
114
} ) ;
115
115
116
116
it ( "process file with android platform in the name (case insensitive test)" , ( ) => {
117
117
let filePath = "/test/filePath.AndRoID.ts" ,
118
- projectFileInfo = projectFilesProviderBase . getProjectFileInfo ( filePath , "android" ) ;
118
+ projectFileInfo = projectFilesProviderBase . getProjectFileInfo ( filePath , "android" , { } ) ;
119
119
120
120
assert . deepEqual ( projectFileInfo , getExpectedProjectFileInfo ( filePath , true ) ) ;
121
121
} ) ;
122
122
123
123
it ( "process file with iOS platform in the name" , ( ) => {
124
124
let filePath = "/test/filePath.ios.ts" ,
125
- projectFileInfo = projectFilesProviderBase . getProjectFileInfo ( filePath , "android" ) ;
125
+ projectFileInfo = projectFilesProviderBase . getProjectFileInfo ( filePath , "android" , { } ) ;
126
126
127
127
assert . deepEqual ( projectFileInfo , getExpectedProjectFileInfo ( filePath , false ) ) ;
128
128
} ) ;
129
129
130
130
it ( "process file with debug configuration in the name" , ( ) => {
131
131
let filePath = "/test/filePath.debug.ts" ,
132
- projectFileInfo = projectFilesProviderBase . getProjectFileInfo ( filePath , "android" ) ;
132
+ projectFileInfo = projectFilesProviderBase . getProjectFileInfo ( filePath , "android" , { } ) ;
133
133
134
134
assert . deepEqual ( projectFileInfo , getExpectedProjectFileInfo ( filePath , true ) ) ;
135
135
} ) ;
136
136
137
137
it ( "process file with release configuration in the name" , ( ) => {
138
138
let filePath = "/test/filePath.release.ts" ,
139
- projectFileInfo = projectFilesProviderBase . getProjectFileInfo ( filePath , "android" ) ;
139
+ projectFileInfo = projectFilesProviderBase . getProjectFileInfo ( filePath , "android" , { } ) ;
140
140
141
141
assert . deepEqual ( projectFileInfo , getExpectedProjectFileInfo ( filePath , false ) ) ;
142
142
} ) ;
0 commit comments