@@ -15,7 +15,7 @@ app.use(bodyParser.json({ 'type': '*/*' }))
1515app . listen ( 12345 ) ;
1616
1717describe ( 'Hooks' , ( ) => {
18- it_exclude_dbs ( [ 'postgres' ] ) ( "should have no hooks registered" , ( done ) => {
18+ it ( "should have no hooks registered" , ( done ) => {
1919 Parse . Hooks . getFunctions ( ) . then ( ( res ) => {
2020 expect ( res . constructor ) . toBe ( Array . prototype . constructor ) ;
2121 done ( ) ;
@@ -25,7 +25,7 @@ describe('Hooks', () => {
2525 } ) ;
2626 } ) ;
2727
28- it_exclude_dbs ( [ 'postgres' ] ) ( "should have no triggers registered" , ( done ) => {
28+ it ( "should have no triggers registered" , ( done ) => {
2929 Parse . Hooks . getTriggers ( ) . then ( ( res ) => {
3030 expect ( res . constructor ) . toBe ( Array . prototype . constructor ) ;
3131 done ( ) ;
@@ -35,7 +35,7 @@ describe('Hooks', () => {
3535 } ) ;
3636 } ) ;
3737
38- it_exclude_dbs ( [ 'postgres' ] ) ( "should CRUD a function registration" , ( done ) => {
38+ it ( "should CRUD a function registration" , ( done ) => {
3939 // Create
4040 Parse . Hooks . createFunction ( "My-Test-Function" , "http://someurl" )
4141 . then ( response => {
@@ -76,7 +76,7 @@ describe('Hooks', () => {
7676 } )
7777 } ) ;
7878
79- it_exclude_dbs ( [ 'postgres' ] ) ( "should CRUD a trigger registration" , ( done ) => {
79+ it ( "should CRUD a trigger registration" , ( done ) => {
8080 // Create
8181 Parse . Hooks . createTrigger ( "MyClass" , "beforeDelete" , "http://someurl" ) . then ( ( res ) => {
8282 expect ( res . className ) . toBe ( "MyClass" ) ;
@@ -142,7 +142,7 @@ describe('Hooks', () => {
142142 } )
143143 } ) ;
144144
145- it_exclude_dbs ( [ 'postgres' ] ) ( "should fail trying to create two times the same function" , ( done ) => {
145+ it ( "should fail trying to create two times the same function" , ( done ) => {
146146 Parse . Hooks . createFunction ( "my_new_function" , "http://url.com" ) . then ( ( ) => {
147147 return Parse . Hooks . createFunction ( "my_new_function" , "http://url.com" )
148148 } , ( ) => {
@@ -165,7 +165,7 @@ describe('Hooks', () => {
165165 } )
166166 } ) ;
167167
168- it_exclude_dbs ( [ 'postgres' ] ) ( "should fail trying to create two times the same trigger" , ( done ) => {
168+ it ( "should fail trying to create two times the same trigger" , ( done ) => {
169169 Parse . Hooks . createTrigger ( "MyClass" , "beforeSave" , "http://url.com" ) . then ( ( ) => {
170170 return Parse . Hooks . createTrigger ( "MyClass" , "beforeSave" , "http://url.com" )
171171 } , ( ) => {
@@ -188,7 +188,7 @@ describe('Hooks', () => {
188188 } )
189189 } ) ;
190190
191- it_exclude_dbs ( [ 'postgres' ] ) ( "should fail trying to update a function that don't exist" , ( done ) => {
191+ it ( "should fail trying to update a function that don't exist" , ( done ) => {
192192 Parse . Hooks . updateFunction ( "A_COOL_FUNCTION" , "http://url.com" ) . then ( ( ) => {
193193 fail ( "Should not succeed" )
194194 } , ( err ) => {
@@ -213,7 +213,7 @@ describe('Hooks', () => {
213213 } ) ;
214214 } ) ;
215215
216- it_exclude_dbs ( [ 'postgres' ] ) ( "should fail trying to update a trigger that don't exist" , ( done ) => {
216+ it ( "should fail trying to update a trigger that don't exist" , ( done ) => {
217217 Parse . Hooks . updateTrigger ( "AClassName" , "beforeSave" , "http://url.com" ) . then ( ( ) => {
218218 fail ( "Should not succeed" )
219219 } , ( err ) => {
@@ -269,7 +269,7 @@ describe('Hooks', () => {
269269 } ) ;
270270
271271
272- it_exclude_dbs ( [ 'postgres' ] ) ( "should create hooks and properly preload them" , ( done ) => {
272+ it ( "should create hooks and properly preload them" , ( done ) => {
273273
274274 var promises = [ ] ;
275275 for ( var i = 0 ; i < 5 ; i ++ ) {
@@ -304,7 +304,7 @@ describe('Hooks', () => {
304304 } )
305305 } ) ;
306306
307- it_exclude_dbs ( [ 'postgres' ] ) ( "should run the function on the test server" , ( done ) => {
307+ it ( "should run the function on the test server" , ( done ) => {
308308
309309 app . post ( "/SomeFunction" , function ( req , res ) {
310310 res . json ( { success :"OK!" } ) ;
@@ -326,7 +326,7 @@ describe('Hooks', () => {
326326 } ) ;
327327 } ) ;
328328
329- it_exclude_dbs ( [ 'postgres' ] ) ( "should run the function on the test server" , ( done ) => {
329+ it ( "should run the function on the test server" , ( done ) => {
330330
331331 app . post ( "/SomeFunctionError" , function ( req , res ) {
332332 res . json ( { error : { code : 1337 , error : "hacking that one!" } } ) ;
@@ -353,7 +353,7 @@ describe('Hooks', () => {
353353 } ) ;
354354 } ) ;
355355
356- it_exclude_dbs ( [ 'postgres' ] ) ( "should provide X-Parse-Webhook-Key when defined" , ( done ) => {
356+ it ( "should provide X-Parse-Webhook-Key when defined" , ( done ) => {
357357 app . post ( "/ExpectingKey" , function ( req , res ) {
358358 if ( req . get ( 'X-Parse-Webhook-Key' ) === 'hook' ) {
359359 res . json ( { success : "correct key provided" } ) ;
@@ -378,7 +378,7 @@ describe('Hooks', () => {
378378 } ) ;
379379 } ) ;
380380
381- it_exclude_dbs ( [ 'postgres' ] ) ( "should not pass X-Parse-Webhook-Key if not provided" , ( done ) => {
381+ it ( "should not pass X-Parse-Webhook-Key if not provided" , ( done ) => {
382382 reconfigureServer ( { webhookKey : undefined } )
383383 . then ( ( ) => {
384384 app . post ( "/ExpectingKeyAlso" , function ( req , res ) {
@@ -411,7 +411,7 @@ describe('Hooks', () => {
411411 } ) ;
412412
413413
414- it_exclude_dbs ( [ 'postgres' ] ) ( "should run the beforeSave hook on the test server" , ( done ) => {
414+ it ( "should run the beforeSave hook on the test server" , ( done ) => {
415415 var triggerCount = 0 ;
416416 app . post ( "/BeforeSaveSome" , function ( req , res ) {
417417 triggerCount ++ ;
@@ -438,7 +438,7 @@ describe('Hooks', () => {
438438 } ) ;
439439 } ) ;
440440
441- it_exclude_dbs ( [ 'postgres' ] ) ( "beforeSave hooks should correctly handle responses containing entire object" , ( done ) => {
441+ it ( "beforeSave hooks should correctly handle responses containing entire object" , ( done ) => {
442442 app . post ( "/BeforeSaveSome2" , function ( req , res ) {
443443 var object = Parse . Object . fromJSON ( req . body . object ) ;
444444 object . set ( 'hello' , "world" ) ;
@@ -458,7 +458,7 @@ describe('Hooks', () => {
458458 } ) ;
459459 } ) ;
460460
461- it_exclude_dbs ( [ 'postgres' ] ) ( "should run the afterSave hook on the test server" , ( done ) => {
461+ it ( "should run the afterSave hook on the test server" , ( done ) => {
462462 var triggerCount = 0 ;
463463 var newObjectId ;
464464 app . post ( "/AfterSaveSome" , function ( req , res ) {
0 commit comments