@@ -4,8 +4,6 @@ import * as stubs from "../stubs";
4
4
import { assert } from "chai" ;
5
5
import * as sinon from "sinon" ;
6
6
7
-
8
-
9
7
const createTestInjector = ( ) : IInjector => {
10
8
const testInjector = new Yok ( ) ;
11
9
testInjector . register ( "androidProjectService" , AndroidProjectService ) ;
@@ -21,7 +19,7 @@ const createTestInjector = (): IInjector => {
21
19
testInjector . register ( "androidResourcesMigrationService" , { } ) ;
22
20
testInjector . register ( "androidPluginBuildService" , { } ) ;
23
21
testInjector . register ( "filesHashService" , {
24
- saveHashesForProject : ( ) => { }
22
+ saveHashesForProject : ( ) => ( { } )
25
23
} ) ;
26
24
testInjector . register ( "androidPluginBuildService" , { } ) ;
27
25
testInjector . register ( "errors" , stubs . ErrorsStub ) ;
@@ -34,7 +32,7 @@ const createTestInjector = (): IInjector => {
34
32
} ;
35
33
} ,
36
34
validateInfo : ( ) => {
37
-
35
+ return true ;
38
36
}
39
37
} ) ;
40
38
@@ -50,10 +48,10 @@ const getDefautlBuildConfig = (): IBuildConfig => {
50
48
teamId : "" ,
51
49
projectDir : "location/location" ,
52
50
keyStorePath : ""
53
- }
54
- }
51
+ } ;
52
+ } ;
55
53
56
- describe . only ( "androidDebugService" , ( ) => {
54
+ describe ( "androidDebugService" , ( ) => {
57
55
let injector : IInjector ;
58
56
let androidProjectService : IPlatformProjectService ;
59
57
let sandbox : sinon . SinonSandbox = null ;
@@ -81,7 +79,6 @@ describe.only("androidDebugService", () => {
81
79
configurationFilePath : ""
82
80
} ;
83
81
} ) ;
84
-
85
82
} ) ;
86
83
87
84
it ( "release no bundle" , async ( ) => {
@@ -93,7 +90,7 @@ describe.only("androidDebugService", () => {
93
90
94
91
//assert
95
92
assert . include ( childProcess . lastCommandArgs , "assembleRelease" ) ;
96
- } )
93
+ } ) ;
97
94
98
95
it ( "debug no bundle" , async ( ) => {
99
96
//arrange
@@ -105,7 +102,7 @@ describe.only("androidDebugService", () => {
105
102
106
103
//assert
107
104
assert . include ( childProcess . lastCommandArgs , "assembleDebug" ) ;
108
- } )
105
+ } ) ;
109
106
110
107
it ( "release bundle" , async ( ) => {
111
108
//arrange
@@ -117,7 +114,7 @@ describe.only("androidDebugService", () => {
117
114
118
115
//assert
119
116
assert . include ( childProcess . lastCommandArgs , "bundleRelease" ) ;
120
- } )
117
+ } ) ;
121
118
122
119
it ( "debug bundle" , async ( ) => {
123
120
//arrange
@@ -130,6 +127,6 @@ describe.only("androidDebugService", () => {
130
127
131
128
//assert
132
129
assert . include ( childProcess . lastCommandArgs , "bundleDebug" ) ;
133
- } )
130
+ } ) ;
134
131
} ) ;
135
132
} ) ;
0 commit comments