@@ -75,7 +75,7 @@ describe('Using dollar methods', () => {
75
75
76
76
// then
77
77
await letNetworkRequestFinish ( )
78
- expect ( await load ) . toMatchObject ( { id : 1 , _meta : { self : 'http://localhost /camps' } } )
78
+ expect ( await load ) . toMatchObject ( { id : 1 , _meta : { self : '/camps' } } )
79
79
done ( )
80
80
} )
81
81
@@ -99,7 +99,7 @@ describe('Using dollar methods', () => {
99
99
100
100
// then
101
101
await letNetworkRequestFinish ( )
102
- expect ( await load ) . toMatchObject ( { id : 2 , _meta : { self : 'http://localhost /camps' } } )
102
+ expect ( await load ) . toMatchObject ( { id : 2 , _meta : { self : '/camps' } } )
103
103
done ( )
104
104
} )
105
105
@@ -161,14 +161,14 @@ describe('Using dollar methods', () => {
161
161
162
162
// then
163
163
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' } } )
166
166
expect ( vm . api . get ( '/campTypes/20' ) ) . toMatchObject ( {
167
167
id : 20 ,
168
168
name : 'camp' ,
169
169
js : true ,
170
170
targetGroup : 'Kids' ,
171
- _meta : { self : 'http://localhost /campTypes/20' }
171
+ _meta : { self : '/campTypes/20' }
172
172
} )
173
173
done ( )
174
174
} )
@@ -223,14 +223,14 @@ describe('Using dollar methods', () => {
223
223
224
224
// then
225
225
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' } } )
228
228
expect ( vm . api . get ( '/campTypes/20' ) ) . toMatchObject ( {
229
229
id : 20 ,
230
230
name : 'camp' ,
231
231
js : true ,
232
232
targetGroup : 'Kids' ,
233
- _meta : { self : 'http://localhost /campTypes/20' }
233
+ _meta : { self : '/campTypes/20' }
234
234
} )
235
235
done ( )
236
236
} )
@@ -268,7 +268,7 @@ describe('Using dollar methods', () => {
268
268
269
269
// then
270
270
await letNetworkRequestFinish ( )
271
- expect ( await load ) . toMatchObject ( { some : 'thing' , _meta : { self : 'http://localhost /camps' } } )
271
+ expect ( await load ) . toMatchObject ( { some : 'thing' , _meta : { self : '/camps' } } )
272
272
done ( )
273
273
} )
274
274
@@ -303,7 +303,7 @@ describe('Using dollar methods', () => {
303
303
304
304
// then
305
305
await letNetworkRequestFinish ( )
306
- expect ( await load ) . toMatchObject ( { some : 'thing' , _meta : { self : 'http://localhost /camps' } } )
306
+ expect ( await load ) . toMatchObject ( { some : 'thing' , _meta : { self : '/camps' } } )
307
307
done ( )
308
308
} )
309
309
@@ -341,7 +341,7 @@ describe('Using dollar methods', () => {
341
341
342
342
// then
343
343
await letNetworkRequestFinish ( )
344
- expect ( hrefPromise ) . resolves . toEqual ( 'http://localhost /camps/1/activities' )
344
+ expect ( hrefPromise ) . resolves . toEqual ( '/camps/1/activities' )
345
345
done ( )
346
346
} )
347
347
@@ -359,7 +359,7 @@ describe('Using dollar methods', () => {
359
359
360
360
// then
361
361
await letNetworkRequestFinish ( )
362
- expect ( hrefPromise ) . resolves . toEqual ( 'http://localhost /camps/1/users/999' )
362
+ expect ( hrefPromise ) . resolves . toEqual ( '/camps/1/users/999' )
363
363
done ( )
364
364
} )
365
365
@@ -377,7 +377,7 @@ describe('Using dollar methods', () => {
377
377
378
378
// then
379
379
await letNetworkRequestFinish ( )
380
- expect ( hrefPromise ) . resolves . toEqual ( 'http://localhost /books' )
380
+ expect ( hrefPromise ) . resolves . toEqual ( '/books' )
381
381
done ( )
382
382
} )
383
383
@@ -432,7 +432,7 @@ describe('Using dollar methods', () => {
432
432
await letNetworkRequestFinish ( )
433
433
const result = ( await load ) . items
434
434
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' } } )
436
436
done ( )
437
437
} )
438
438
@@ -467,7 +467,7 @@ describe('Using dollar methods', () => {
467
467
await letNetworkRequestFinish ( )
468
468
const result = ( await load ) . items
469
469
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' } } )
471
471
done ( )
472
472
} )
473
473
@@ -555,7 +555,7 @@ describe('Using dollar methods', () => {
555
555
id : 1028 ,
556
556
name : 'The first chapter' ,
557
557
_meta : {
558
- self : 'http://localhost /chapters/1028'
558
+ self : '/chapters/1028'
559
559
}
560
560
} )
561
561
done ( )
@@ -643,7 +643,7 @@ describe('Using dollar methods', () => {
643
643
id : 1028 ,
644
644
name : 'The first chapter' ,
645
645
_meta : {
646
- self : 'http://localhost /chapters/1028'
646
+ self : '/chapters/1028'
647
647
}
648
648
} )
649
649
done ( )
0 commit comments