@@ -7,20 +7,20 @@ import {
7
7
} from '.' ;
8
8
9
9
describe ( 'Tests' , ( ) => {
10
- test ( 'hasNativeVersion true' , async ( ) => {
11
- const isNative = await hasNativeVersion ( Platform . all , 'src/testdata/node_modules/native-module' ) ;
10
+ test ( 'hasNativeVersion true' , ( ) => {
11
+ const isNative = hasNativeVersion ( Platform . all , 'src/testdata/node_modules/native-module' ) ;
12
12
13
13
expect ( isNative ) . toBe ( true ) ;
14
14
} ) ;
15
15
16
- test ( 'hasNativeVersion false' , async ( ) => {
17
- const isNative = await hasNativeVersion ( Platform . all , 'src/testdata/node_modules/js-module' ) ;
16
+ test ( 'hasNativeVersion false' , ( ) => {
17
+ const isNative = hasNativeVersion ( Platform . all , 'src/testdata/node_modules/js-module' ) ;
18
18
19
19
expect ( isNative ) . toBe ( false ) ;
20
20
} ) ;
21
21
22
- test ( 'getModules' , async ( ) => {
23
- const modules = await getModules ( 'src/testdata' ) ;
22
+ test ( 'getModules' , ( ) => {
23
+ const modules = getModules ( 'src/testdata' ) ;
24
24
25
25
expect ( modules ) . toEqual < Module [ ] > ( [
26
26
{
@@ -106,41 +106,41 @@ describe('Tests', () => {
106
106
] ) ;
107
107
} ) ;
108
108
109
- test ( 'isGitDirty' , async ( ) => {
110
- const isIt = await isGitDirty ( '.' ) ;
109
+ test ( 'isGitDirty' , ( ) => {
110
+ const isIt = isGitDirty ( '.' ) ;
111
111
expect ( isIt ) . toBe ( false ) ;
112
112
} ) ;
113
113
114
- test ( 'getCurrentHash' , async ( ) => {
115
- const hash = await getCurrentHash ( Platform . all , { rootDir : path . join ( __dirname , 'testdata' ) , verbose : true } ) ;
114
+ test ( 'getCurrentHash' , ( ) => {
115
+ const hash = getCurrentHash ( Platform . all , { rootDir : path . join ( __dirname , 'testdata' ) , verbose : true } ) ;
116
116
117
117
expect ( hash ) . toEqual ( 'b98c0e5d9ff15b1ca98d7aa3d09ebe39' ) ;
118
118
} ) ;
119
119
120
- test ( 'verifyLibrary true' , async ( ) => {
121
- const { hasChanged, valueExists } = await verifyLibrary ( { rootDir : `${ __dirname } /testdata/node_modules/android-module-with-hash` , verbose : true } ) ;
120
+ test ( 'verifyLibrary true' , ( ) => {
121
+ const { hasChanged, valueExists } = verifyLibrary ( { rootDir : `${ __dirname } /testdata/node_modules/android-module-with-hash` , verbose : true } ) ;
122
122
123
123
expect ( hasChanged ) . toBe ( false ) ;
124
124
expect ( valueExists ) . toBe ( true ) ;
125
125
} , 10000 ) ;
126
126
127
- test ( 'verifyLibrary without hash' , async ( ) => {
128
- const { hasChanged, valueExists } = await verifyLibrary ( { rootDir : `${ __dirname } /testdata/node_modules/android-module` , verbose : true } ) ;
127
+ test ( 'verifyLibrary without hash' , ( ) => {
128
+ const { hasChanged, valueExists } = verifyLibrary ( { rootDir : `${ __dirname } /testdata/node_modules/android-module` , verbose : true } ) ;
129
129
130
130
expect ( hasChanged ) . toBe ( false ) ;
131
131
expect ( valueExists ) . toBe ( false ) ;
132
132
} , 10000 ) ;
133
133
134
- test ( 'verifyLibrary with faulty hash' , async ( ) => {
135
- const { hasChanged, valueExists } = await verifyLibrary ( { rootDir : `${ __dirname } /testdata/node_modules/native-module-with-faulty-hash` , verbose : true } ) ;
134
+ test ( 'verifyLibrary with faulty hash' , ( ) => {
135
+ const { hasChanged, valueExists } = verifyLibrary ( { rootDir : `${ __dirname } /testdata/node_modules/native-module-with-faulty-hash` , verbose : true } ) ;
136
136
137
137
expect ( hasChanged ) . toBe ( true ) ;
138
138
expect ( valueExists ) . toBe ( true ) ;
139
139
} , 10000 ) ;
140
140
141
- test ( 'readPackageJson' , async ( ) => {
142
- const jsModuleVersion = await readPackageJson ( 'src/testdata/node_modules/js-module' ) ;
143
- const nativeModuleVersion = await readPackageJson ( 'src/testdata/node_modules/native-module' ) ;
141
+ test ( 'readPackageJson' , ( ) => {
142
+ const jsModuleVersion = readPackageJson ( 'src/testdata/node_modules/js-module' ) ;
143
+ const nativeModuleVersion = readPackageJson ( 'src/testdata/node_modules/native-module' ) ;
144
144
145
145
expect ( jsModuleVersion . version ) . toEqual ( '0.0.1' ) ;
146
146
expect ( jsModuleVersion . nativeDependencyHash ) . toEqual ( undefined ) ;
0 commit comments