Skip to content

Commit 2a63129

Browse files
authored
test: Add more test IDs (#9285)
1 parent 9552a4c commit 2a63129

7 files changed

+21
-21
lines changed

spec/CloudCode.Validator.spec.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ describe('cloud validator', () => {
734734
done();
735735
});
736736

737-
it('basic beforeSave Parse.Config skipWithMasterKey', async () => {
737+
it_id('893eec0c-41bd-4adf-8f0a-306087ad8d61')(it)('basic beforeSave Parse.Config skipWithMasterKey', async () => {
738738
Parse.Cloud.beforeSave(
739739
Parse.Config,
740740
() => {
@@ -750,7 +750,7 @@ describe('cloud validator', () => {
750750
expect(config.get('number')).toBe(12);
751751
});
752752

753-
it('basic afterSave Parse.Config skipWithMasterKey', async () => {
753+
it_id('91e739a4-6a38-405c-8f83-f36d48220734')(it)('basic afterSave Parse.Config skipWithMasterKey', async () => {
754754
Parse.Cloud.afterSave(
755755
Parse.Config,
756756
() => {
@@ -1531,15 +1531,15 @@ describe('cloud validator', () => {
15311531
}
15321532
});
15331533

1534-
it('validate beforeSave Parse.Config', async () => {
1534+
it_id('32ca1a99-7f2b-429d-a7cf-62b6661d0af6')(it)('validate beforeSave Parse.Config', async () => {
15351535
Parse.Cloud.beforeSave(Parse.Config, () => {}, validatorSuccess);
15361536
const config = await testConfig();
15371537
expect(config.get('internal')).toBe('i');
15381538
expect(config.get('string')).toBe('s');
15391539
expect(config.get('number')).toBe(12);
15401540
});
15411541

1542-
it('validate beforeSave Parse.Config fail', async () => {
1542+
it_id('c84d11e7-d09c-4843-ad98-f671511bf612')(it)('validate beforeSave Parse.Config fail', async () => {
15431543
Parse.Cloud.beforeSave(Parse.Config, () => {}, validatorFail);
15441544
try {
15451545
await testConfig();
@@ -1549,15 +1549,15 @@ describe('cloud validator', () => {
15491549
}
15501550
});
15511551

1552-
it('validate afterSave Parse.Config', async () => {
1552+
it_id('b18b9a6a-0e35-4b60-9771-30f53501df3c')(it)('validate afterSave Parse.Config', async () => {
15531553
Parse.Cloud.afterSave(Parse.Config, () => {}, validatorSuccess);
15541554
const config = await testConfig();
15551555
expect(config.get('internal')).toBe('i');
15561556
expect(config.get('string')).toBe('s');
15571557
expect(config.get('number')).toBe(12);
15581558
});
15591559

1560-
it('validate afterSave Parse.Config fail', async () => {
1560+
it_id('ef761222-1758-4614-b984-da84d73fc10c')(it)('validate afterSave Parse.Config fail', async () => {
15611561
Parse.Cloud.afterSave(Parse.Config, () => {}, validatorFail);
15621562
try {
15631563
await testConfig();

spec/CloudCode.spec.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -3926,7 +3926,7 @@ describe('Cloud Config hooks', () => {
39263926
return Parse.Config.save({ internal: 'i', string: 's', number: 12 }, { internal: true });
39273927
}
39283928

3929-
it('beforeSave(Parse.Config) can run hook with new config', async () => {
3929+
it_id('997fe20a-96f7-454a-a5b0-c155b8d02f05')(it)('beforeSave(Parse.Config) can run hook with new config', async () => {
39303930
let count = 0;
39313931
Parse.Cloud.beforeSave(Parse.Config, (req) => {
39323932
expect(req.object).toBeDefined();
@@ -3950,7 +3950,7 @@ describe('Cloud Config hooks', () => {
39503950
expect(count).toBe(1);
39513951
});
39523952

3953-
it('beforeSave(Parse.Config) can run hook with existing config', async () => {
3953+
it_id('06a9b66c-ffb4-43d1-a025-f7d2192500e7')(it)('beforeSave(Parse.Config) can run hook with existing config', async () => {
39543954
let count = 0;
39553955
Parse.Cloud.beforeSave(Parse.Config, (req) => {
39563956
if (count === 0) {
@@ -3968,7 +3968,7 @@ describe('Cloud Config hooks', () => {
39683968
expect(count).toBe(2);
39693969
});
39703970

3971-
it('beforeSave(Parse.Config) should not change config if nothing is returned', async () => {
3971+
it_id('ca76de8e-671b-4c2d-9535-bd28a855fa1a')(it)('beforeSave(Parse.Config) should not change config if nothing is returned', async () => {
39723972
let count = 0;
39733973
Parse.Cloud.beforeSave(Parse.Config, () => {
39743974
count += 1;
@@ -4021,7 +4021,7 @@ describe('Cloud Config hooks', () => {
40214021
}
40224022
});
40234023

4024-
it('afterSave(Parse.Config) can run hook with new config', async () => {
4024+
it_id('3e7a75c0-6c2e-4c7e-b042-6eb5f23acf94')(it)('afterSave(Parse.Config) can run hook with new config', async () => {
40254025
let count = 0;
40264026
Parse.Cloud.afterSave(Parse.Config, (req) => {
40274027
expect(req.object).toBeDefined();
@@ -4045,7 +4045,7 @@ describe('Cloud Config hooks', () => {
40454045
expect(count).toBe(1);
40464046
});
40474047

4048-
it('afterSave(Parse.Config) can run hook with existing config', async () => {
4048+
it_id('5cffb28a-2924-4857-84bb-f5778d80372a')(it)('afterSave(Parse.Config) can run hook with existing config', async () => {
40494049
let count = 0;
40504050
Parse.Cloud.afterSave(Parse.Config, (req) => {
40514051
if (count === 0) {
@@ -4063,7 +4063,7 @@ describe('Cloud Config hooks', () => {
40634063
expect(count).toBe(2);
40644064
});
40654065

4066-
it('afterSave(Parse.Config) should throw error', async () => {
4066+
it_id('49883992-ce91-4797-85f9-7cce1f819407')(it)('afterSave(Parse.Config) should throw error', async () => {
40674067
Parse.Cloud.afterSave(Parse.Config, () => {
40684068
throw new Parse.Error(400, 'It should fail');
40694069
});

spec/EmailVerificationToken.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ describe('Email Verification Token Expiration: ', () => {
431431
expect(emailSpy).toHaveBeenCalledTimes(0);
432432
});
433433

434-
it('provides full user object in email verification function on email and username change', async () => {
434+
it_id('d98babc1-feb8-4b5e-916c-57dc0a6ed9fb')(it)('provides full user object in email verification function on email and username change', async () => {
435435
const emailAdapter = {
436436
sendVerificationEmail: () => {},
437437
sendPasswordResetEmail: () => Promise.resolve(),
@@ -679,7 +679,7 @@ describe('Email Verification Token Expiration: ', () => {
679679
});
680680
});
681681

682-
it('setting the email on the user should set a new email verification token and new expiration date for the token when expire email verify token flag is set', done => {
682+
it_id('b6c87f35-d887-477d-bc86-a9217a424f53')(it)('setting the email on the user should set a new email verification token and new expiration date for the token when expire email verify token flag is set', done => {
683683
const user = new Parse.User();
684684
let userBeforeEmailReset;
685685

spec/ParseObject.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ describe('Parse.Object testing', () => {
603603
expect(result.get('items')).toEqual(obj.get('items'));
604604
});
605605

606-
it('can query array nested fields', async () => {
606+
it_id('44097c6f-d0ca-4dc5-aa8a-3dd2d9ac645a')(it)('can query array nested fields', async () => {
607607
const objects = [];
608608
for (let i = 0; i < 10; i++) {
609609
const obj = new TestObject();

spec/ParseUser.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2271,7 +2271,7 @@ describe('Parse.User testing', () => {
22712271
);
22722272
});
22732273

2274-
it('signup should fail with duplicate case insensitive username with field specific setter', async () => {
2274+
it_id('1cef005b-d5f0-4699-af0c-bb0af27d2437')(it)('signup should fail with duplicate case insensitive username with field specific setter', async () => {
22752275
const user = new Parse.User();
22762276
user.setUsername('test1');
22772277
user.setPassword('test');
@@ -2285,7 +2285,7 @@ describe('Parse.User testing', () => {
22852285
);
22862286
});
22872287

2288-
it('signup should fail with duplicate case insensitive email', async () => {
2288+
it_id('12735529-98d1-42c0-b437-3b47fe78ddde')(it)('signup should fail with duplicate case insensitive email', async () => {
22892289
const user = new Parse.User();
22902290
user.setUsername('test1');
22912291
user.setPassword('test');

spec/PointerPermissions.spec.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2517,7 +2517,7 @@ describe('Pointer Permissions', () => {
25172517
done();
25182518
});
25192519

2520-
it('should fail for user not listed', async done => {
2520+
it_id('84a42339-c7b5-4735-a431-57b46535b073')(it)('should fail for user not listed', async done => {
25212521
await updateCLP({
25222522
get: {
25232523
pointerFields: ['moderators'],
@@ -2698,7 +2698,7 @@ describe('Pointer Permissions', () => {
26982698
done();
26992699
});
27002700

2701-
it('should fail for user not listed', async done => {
2701+
it_id('1abb9f4a-fb24-48c7-8025-3001d6cf8737')(it)('should fail for user not listed', async done => {
27022702
await updateCLP({
27032703
update: {
27042704
pointerFields: ['moderators'],
@@ -2764,7 +2764,7 @@ describe('Pointer Permissions', () => {
27642764
done();
27652765
});
27662766

2767-
it('should fail for user not listed', async done => {
2767+
it_id('3175a0e3-e51e-4b84-a2e6-50bbcc582123')(it)('should fail for user not listed', async done => {
27682768
await updateCLP({
27692769
delete: {
27702770
pointerFields: ['owners'],

spec/rest.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ describe('rest create', () => {
787787
);
788788
});
789789

790-
it('cannot get object in _GlobalConfig if not masterKey through pointer', async () => {
790+
it_id('3ce563bf-93aa-4d0b-9af9-c5fb246ac9fc')(it)('cannot get object in _GlobalConfig if not masterKey through pointer', async () => {
791791
await Parse.Config.save({ privateData: 'secret' }, { privateData: true });
792792
const obj2 = new Parse.Object('TestObject');
793793
obj2.set('globalConfigPointer', {

0 commit comments

Comments
 (0)