File tree 1 file changed +15
-12
lines changed
test-app/app/src/main/assets/app/Infrastructure/Jasmine/jasmine-2.0.1
1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -40,18 +40,21 @@ var TerminalReporter = require('../jasmine-reporters/terminal_reporter').Termina
40
40
} ,
41
41
42
42
it : function ( desc , func ) {
43
- return env . it ( desc , func ) ;
44
- // if (func.length > 0) {
45
- // return env.it(desc, func);
46
- // } else {
47
- // return env.it(desc, function(done) {
48
- // func();
49
- // __ns__setTimeout(() => {
50
- // done();
51
- // }, 1)
52
- //
53
- // })
54
- // }
43
+ if ( global . __engine === "QuickJS" ) {
44
+ if ( func . length > 0 ) {
45
+ return env . it ( desc , func ) ;
46
+ } else {
47
+ return env . it ( desc , function ( done ) {
48
+ func ( ) ;
49
+ __ns__setTimeout ( ( ) => {
50
+ done ( ) ;
51
+ } , 1 )
52
+
53
+ } )
54
+ }
55
+ } else {
56
+ return env . it ( desc , func ) ;
57
+ }
55
58
} ,
56
59
57
60
xit : function ( desc , func ) {
You can’t perform that action at this time.
0 commit comments