Skip to content

Commit 9231194

Browse files
committed
test
1 parent 61e31b3 commit 9231194

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

spec/ParseQuery.spec.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2113,17 +2113,14 @@ describe('Parse.Query testing', () => {
21132113
.then(done);
21142114
});
21152115

2116-
it('regex with unicode option', function (done) {
2116+
it_id('351f57a8-e00a-4da2-887d-6e25c9e359fc')(it)('regex with unicode option', async function () {
21172117
const thing = new TestObject();
21182118
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);
21272124
});
21282125

21292126
it_id('823852f6-1de5-45ba-a2b9-ed952fcc6012')(it)('Use a regex that requires all modifiers', function (done) {

0 commit comments

Comments
 (0)