File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ <h4>External image refer by BZZ protocol</h4>
33
33
</ div >
34
34
< div >
35
35
< h4 > External image refer by bzz.link</ h4 >
36
- < img id ="bzz-image-2 " is ="swarm-img " width ="300 " src ="https://bafybwiec3z22ulsoe7xpypaa6xg4piwlpb2afedkonqjqa66b3rfmavu6u .bzz.link/images/jinn.png " />
36
+ < img id ="bzz-image-2 " is ="swarm-img " width ="300 " src ="https://bah5qcgzaqlphlkrojyt657b4ad243r5czn4hiauqnjzwbgad3yhoevqcwt2q .bzz.link/images/jinn.png " />
37
37
</ div >
38
38
< h2 > Injected Swarm Script and Fake URL samples</ h2 >
39
39
< div >
Original file line number Diff line number Diff line change @@ -13,6 +13,15 @@ describe('Unit', () => {
13
13
14
14
expect ( fakeUrlAgain ) . toBe ( fakeUrl )
15
15
expect ( sessionIdAgain ) . toBe ( sessionId )
16
+
17
+ // with path
18
+ const fakeUrl2 = `${ FakeUrl . beeApiAddress } /bzz/${ testBzzHash } /path/to/smth.img`
19
+ const fakeUrlWithSessionId2 = `${ fakeUrl2 } __${ SWARM_SESSION_ID_KEY } ~${ sessionId } __`
20
+ const { originalUrl : fakeUrlAgain2 , sessionId : sessionIdAgain2 } =
21
+ unpackSwarmSessionIdFromUrl ( fakeUrlWithSessionId2 )
22
+
23
+ expect ( fakeUrlAgain2 ) . toBe ( fakeUrl2 )
24
+ expect ( sessionIdAgain2 ) . toBe ( sessionId )
16
25
} )
17
26
18
27
test ( 'Throw error at Unpacking Swarm session ID from wrong URL' , ( ) => {
You can’t perform that action at this time.
0 commit comments