@@ -98,67 +98,67 @@ describe('Hooks', () => {
9898 } ) ;
9999
100100 it ( 'should properly build POST function' , async ( ) => {
101- Hooks . createFunction ( 'myFunction' , 'https://dummy .com' ) ;
101+ Hooks . createFunction ( 'myFunction' , 'https://example .com' ) ;
102102
103103 expect ( CoreManager . getHooksController ( ) . sendRequest . mock . calls [ 0 ] ) . toEqual ( [
104104 'POST' ,
105105 'hooks/functions' ,
106106 {
107107 functionName : 'myFunction' ,
108- url : 'https://dummy .com' ,
108+ url : 'https://example .com' ,
109109 } ,
110110 ] ) ;
111111 defaultController . sendRequest = sendRequest ;
112- await Hooks . createFunction ( 'myFunction' , 'https://dummy .com' ) ;
112+ await Hooks . createFunction ( 'myFunction' , 'https://example .com' ) ;
113113 expect ( RESTController . ajax . mock . calls [ 0 ] [ 1 ] ) . toBe ( 'https://api.parse.com/1/hooks/functions' ) ;
114114 } ) ;
115115
116116 it ( 'should properly build POST trigger' , async ( ) => {
117- Hooks . createTrigger ( 'MyClass' , 'beforeSave' , 'https://dummy .com' ) ;
117+ Hooks . createTrigger ( 'MyClass' , 'beforeSave' , 'https://example .com' ) ;
118118
119119 expect ( CoreManager . getHooksController ( ) . sendRequest . mock . calls [ 0 ] ) . toEqual ( [
120120 'POST' ,
121121 'hooks/triggers' ,
122122 {
123123 className : 'MyClass' ,
124124 triggerName : 'beforeSave' ,
125- url : 'https://dummy .com' ,
125+ url : 'https://example .com' ,
126126 } ,
127127 ] ) ;
128128 defaultController . sendRequest = sendRequest ;
129- await Hooks . createTrigger ( 'MyClass' , 'beforeSave' , 'https://dummy .com' ) ;
129+ await Hooks . createTrigger ( 'MyClass' , 'beforeSave' , 'https://example .com' ) ;
130130 expect ( RESTController . ajax . mock . calls [ 0 ] [ 1 ] ) . toBe ( 'https://api.parse.com/1/hooks/triggers' ) ;
131131 } ) ;
132132
133133 it ( 'should properly build PUT function' , async ( ) => {
134- Hooks . updateFunction ( 'myFunction' , 'https://dummy .com' ) ;
134+ Hooks . updateFunction ( 'myFunction' , 'https://example .com' ) ;
135135
136136 expect ( CoreManager . getHooksController ( ) . sendRequest . mock . calls [ 0 ] ) . toEqual ( [
137137 'PUT' ,
138138 'hooks/functions/myFunction' ,
139139 {
140- url : 'https://dummy .com' ,
140+ url : 'https://example .com' ,
141141 } ,
142142 ] ) ;
143143 defaultController . sendRequest = sendRequest ;
144- await Hooks . updateFunction ( 'myFunction' , 'https://dummy .com' ) ;
144+ await Hooks . updateFunction ( 'myFunction' , 'https://example .com' ) ;
145145 expect ( RESTController . ajax . mock . calls [ 0 ] [ 1 ] ) . toBe (
146146 'https://api.parse.com/1/hooks/functions/myFunction'
147147 ) ;
148148 } ) ;
149149
150150 it ( 'should properly build PUT trigger' , async ( ) => {
151- Hooks . updateTrigger ( 'MyClass' , 'beforeSave' , 'https://dummy .com' ) ;
151+ Hooks . updateTrigger ( 'MyClass' , 'beforeSave' , 'https://example .com' ) ;
152152
153153 expect ( CoreManager . getHooksController ( ) . sendRequest . mock . calls [ 0 ] ) . toEqual ( [
154154 'PUT' ,
155155 'hooks/triggers/MyClass/beforeSave' ,
156156 {
157- url : 'https://dummy .com' ,
157+ url : 'https://example .com' ,
158158 } ,
159159 ] ) ;
160160 defaultController . sendRequest = sendRequest ;
161- await Hooks . updateTrigger ( 'MyClass' , 'beforeSave' , 'https://dummy .com' ) ;
161+ await Hooks . updateTrigger ( 'MyClass' , 'beforeSave' , 'https://example .com' ) ;
162162 expect ( RESTController . ajax . mock . calls [ 0 ] [ 1 ] ) . toBe (
163163 'https://api.parse.com/1/hooks/triggers/MyClass/beforeSave'
164164 ) ;
@@ -202,7 +202,7 @@ describe('Hooks', () => {
202202 expect ( err . error ) . toBe ( 'invalid hook declaration' ) ;
203203 } ) ;
204204
205- const p2 = Hooks . create ( { url : 'http://dummy .com' } ) . catch ( err => {
205+ const p2 = Hooks . create ( { url : 'http://example .com' } ) . catch ( err => {
206206 expect ( err . code ) . toBe ( 143 ) ;
207207 expect ( err . error ) . toBe ( 'invalid hook declaration' ) ;
208208 } ) ;
@@ -212,7 +212,7 @@ describe('Hooks', () => {
212212 expect ( err . error ) . toBe ( 'invalid hook declaration' ) ;
213213 } ) ;
214214
215- const p4 = Hooks . create ( { className : 'MyClass' , url : 'http://dummy .com' } ) . catch ( err => {
215+ const p4 = Hooks . create ( { className : 'MyClass' , url : 'http://example .com' } ) . catch ( err => {
216216 expect ( err . code ) . toBe ( 143 ) ;
217217 expect ( err . error ) . toBe ( 'invalid hook declaration' ) ;
218218 } ) ;
@@ -237,7 +237,7 @@ describe('Hooks', () => {
237237 expect ( err . error ) . toBe ( 'invalid hook declaration' ) ;
238238 } ) ;
239239
240- const p3 = Hooks . update ( { className : 'MyClass' , url : 'http://dummy .com' } ) . catch ( err => {
240+ const p3 = Hooks . update ( { className : 'MyClass' , url : 'http://example .com' } ) . catch ( err => {
241241 expect ( err . code ) . toBe ( 143 ) ;
242242 expect ( err . error ) . toBe ( 'invalid hook declaration' ) ;
243243 } ) ;
@@ -256,7 +256,7 @@ describe('Hooks', () => {
256256 expect ( err . error ) . toBe ( 'invalid hook declaration' ) ;
257257 } ) ;
258258
259- const p3 = Hooks . remove ( { className : 'MyClass' , url : 'http://dummy .com' } ) . catch ( err => {
259+ const p3 = Hooks . remove ( { className : 'MyClass' , url : 'http://example .com' } ) . catch ( err => {
260260 expect ( err . code ) . toBe ( 143 ) ;
261261 expect ( err . error ) . toBe ( 'invalid hook declaration' ) ;
262262 } ) ;
0 commit comments