ci: Find duplicate and slow tests (#9188)

This commit is contained in:
Diamond Lewis
2024-07-16 03:34:10 -05:00
committed by GitHub
parent 872b9eb47b
commit e355f36ed4
13 changed files with 43 additions and 170 deletions

View File

@@ -194,27 +194,6 @@ describe('cloud validator', () => {
});
});
it('set params on cloud functions', done => {
Parse.Cloud.define(
'hello',
() => {
return 'Hello world!';
},
{
fields: ['a'],
}
);
Parse.Cloud.run('hello', {})
.then(() => {
fail('function should have failed.');
})
.catch(error => {
expect(error.code).toEqual(Parse.Error.VALIDATION_ERROR);
expect(error.message).toEqual('Validation failed. Please specify data for a.');
done();
});
});
it('allow params on cloud functions', done => {
Parse.Cloud.define(
'hello',
@@ -1629,7 +1608,7 @@ describe('cloud validator', () => {
}
});
it('Logs on invalid config', () => {
it('Logs on multiple invalid configs', () => {
const fields = [
{
field: 'otherKey',