File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -2113,17 +2113,14 @@ describe('Parse.Query testing', () => {
2113
2113
. then ( done ) ;
2114
2114
} ) ;
2115
2115
2116
- it ( 'regex with unicode option' , function ( done ) {
2116
+ it_id ( '351f57a8-e00a-4da2-887d-6e25c9e359fc' ) ( it ) ( 'regex with unicode option' , async function ( ) {
2117
2117
const thing = new TestObject ( ) ;
2118
2118
thing . set ( 'myString' , 'hello 世界' ) ;
2119
- Parse . Object . saveAll ( [ thing ] ) . then ( function ( ) {
2120
- const query = new Parse . Query ( TestObject ) ;
2121
- query . matches ( 'myString' , '世界' , 'u' ) ;
2122
- query . find ( ) . then ( function ( results ) {
2123
- equal ( results . length , 1 ) ;
2124
- done ( ) ;
2125
- } ) ;
2126
- } ) ;
2119
+ await Parse . Object . saveAll ( [ thing ] ) ;
2120
+ const query = new Parse . Query ( TestObject ) ;
2121
+ query . matches ( 'myString' , '世界' , 'u' ) ;
2122
+ const results = await query . find ( ) ;
2123
+ equal ( results . length , 1 ) ;
2127
2124
} ) ;
2128
2125
2129
2126
it_id ( '823852f6-1de5-45ba-a2b9-ed952fcc6012' ) ( it ) ( 'Use a regex that requires all modifiers' , function ( done ) {
You can’t perform that action at this time.
0 commit comments