@@ -75,7 +75,7 @@ describe('Using dollar methods', () => {
7575
7676 // then
7777 await letNetworkRequestFinish ( )
78- expect ( await load ) . toMatchObject ( { id : 1 , _meta : { self : 'http://localhost /camps' } } )
78+ expect ( await load ) . toMatchObject ( { id : 1 , _meta : { self : '/camps' } } )
7979 done ( )
8080 } )
8181
@@ -99,7 +99,7 @@ describe('Using dollar methods', () => {
9999
100100 // then
101101 await letNetworkRequestFinish ( )
102- expect ( await load ) . toMatchObject ( { id : 2 , _meta : { self : 'http://localhost /camps' } } )
102+ expect ( await load ) . toMatchObject ( { id : 2 , _meta : { self : '/camps' } } )
103103 done ( )
104104 } )
105105
@@ -161,14 +161,14 @@ describe('Using dollar methods', () => {
161161
162162 // then
163163 await letNetworkRequestFinish ( )
164- expect ( await load ) . toMatchObject ( { id : 1 , _meta : { self : 'http://localhost /camps/1' } } )
165- expect ( vm . api . get ( '/camps/1' ) ) . toMatchObject ( { id : 1 , _meta : { self : 'http://localhost /camps/1' } } )
164+ expect ( await load ) . toMatchObject ( { id : 1 , _meta : { self : '/camps/1' } } )
165+ expect ( vm . api . get ( '/camps/1' ) ) . toMatchObject ( { id : 1 , _meta : { self : '/camps/1' } } )
166166 expect ( vm . api . get ( '/campTypes/20' ) ) . toMatchObject ( {
167167 id : 20 ,
168168 name : 'camp' ,
169169 js : true ,
170170 targetGroup : 'Kids' ,
171- _meta : { self : 'http://localhost /campTypes/20' }
171+ _meta : { self : '/campTypes/20' }
172172 } )
173173 done ( )
174174 } )
@@ -223,14 +223,14 @@ describe('Using dollar methods', () => {
223223
224224 // then
225225 await letNetworkRequestFinish ( )
226- expect ( await load ) . toMatchObject ( { id : 1 , _meta : { self : 'http://localhost /camps/1' } } )
227- expect ( vm . api . get ( '/camps/1' ) ) . toMatchObject ( { id : 1 , _meta : { self : 'http://localhost /camps/1' } } )
226+ expect ( await load ) . toMatchObject ( { id : 1 , _meta : { self : '/camps/1' } } )
227+ expect ( vm . api . get ( '/camps/1' ) ) . toMatchObject ( { id : 1 , _meta : { self : '/camps/1' } } )
228228 expect ( vm . api . get ( '/campTypes/20' ) ) . toMatchObject ( {
229229 id : 20 ,
230230 name : 'camp' ,
231231 js : true ,
232232 targetGroup : 'Kids' ,
233- _meta : { self : 'http://localhost /campTypes/20' }
233+ _meta : { self : '/campTypes/20' }
234234 } )
235235 done ( )
236236 } )
@@ -268,7 +268,7 @@ describe('Using dollar methods', () => {
268268
269269 // then
270270 await letNetworkRequestFinish ( )
271- expect ( await load ) . toMatchObject ( { some : 'thing' , _meta : { self : 'http://localhost /camps' } } )
271+ expect ( await load ) . toMatchObject ( { some : 'thing' , _meta : { self : '/camps' } } )
272272 done ( )
273273 } )
274274
@@ -303,7 +303,7 @@ describe('Using dollar methods', () => {
303303
304304 // then
305305 await letNetworkRequestFinish ( )
306- expect ( await load ) . toMatchObject ( { some : 'thing' , _meta : { self : 'http://localhost /camps' } } )
306+ expect ( await load ) . toMatchObject ( { some : 'thing' , _meta : { self : '/camps' } } )
307307 done ( )
308308 } )
309309
@@ -341,7 +341,7 @@ describe('Using dollar methods', () => {
341341
342342 // then
343343 await letNetworkRequestFinish ( )
344- expect ( hrefPromise ) . resolves . toEqual ( 'http://localhost /camps/1/activities' )
344+ expect ( hrefPromise ) . resolves . toEqual ( '/camps/1/activities' )
345345 done ( )
346346 } )
347347
@@ -359,7 +359,7 @@ describe('Using dollar methods', () => {
359359
360360 // then
361361 await letNetworkRequestFinish ( )
362- expect ( hrefPromise ) . resolves . toEqual ( 'http://localhost /camps/1/users/999' )
362+ expect ( hrefPromise ) . resolves . toEqual ( '/camps/1/users/999' )
363363 done ( )
364364 } )
365365
@@ -377,7 +377,7 @@ describe('Using dollar methods', () => {
377377
378378 // then
379379 await letNetworkRequestFinish ( )
380- expect ( hrefPromise ) . resolves . toEqual ( 'http://localhost /books' )
380+ expect ( hrefPromise ) . resolves . toEqual ( '/books' )
381381 done ( )
382382 } )
383383
@@ -432,7 +432,7 @@ describe('Using dollar methods', () => {
432432 await letNetworkRequestFinish ( )
433433 const result = ( await load ) . items
434434 expect ( result ) . toHaveLength ( 1 )
435- expect ( result [ 0 ] ) . toMatchObject ( { id : 123 , _meta : { self : 'http://localhost /items/123' } } )
435+ expect ( result [ 0 ] ) . toMatchObject ( { id : 123 , _meta : { self : '/items/123' } } )
436436 done ( )
437437 } )
438438
@@ -467,7 +467,7 @@ describe('Using dollar methods', () => {
467467 await letNetworkRequestFinish ( )
468468 const result = ( await load ) . items
469469 expect ( result ) . toHaveLength ( 1 )
470- expect ( result [ 0 ] ) . toMatchObject ( { id : 123 , _meta : { self : 'http://localhost /items/123' } } )
470+ expect ( result [ 0 ] ) . toMatchObject ( { id : 123 , _meta : { self : '/items/123' } } )
471471 done ( )
472472 } )
473473
@@ -555,7 +555,7 @@ describe('Using dollar methods', () => {
555555 id : 1028 ,
556556 name : 'The first chapter' ,
557557 _meta : {
558- self : 'http://localhost /chapters/1028'
558+ self : '/chapters/1028'
559559 }
560560 } )
561561 done ( )
@@ -643,7 +643,7 @@ describe('Using dollar methods', () => {
643643 id : 1028 ,
644644 name : 'The first chapter' ,
645645 _meta : {
646- self : 'http://localhost /chapters/1028'
646+ self : '/chapters/1028'
647647 }
648648 } )
649649 done ( )
0 commit comments