@@ -55,23 +55,23 @@ describe('SolidHost', () => {
55
55
} )
56
56
57
57
it ( 'should allow a userId with empty origin' , ( ) => {
58
- expect ( host . allowsSessionFor ( 'https://user.test.local /profile/card#me' , '' ) ) . to . be . true
58
+ expect ( host . allowsSessionFor ( 'https://user.own /profile/card#me' , '' ) ) . to . be . true
59
59
} )
60
60
61
61
it ( 'should allow a userId with the user subdomain as origin' , ( ) => {
62
- expect ( host . allowsSessionFor ( 'https://user.test.local /profile/card#me' , 'https://user.test.local ' ) ) . to . be . true
62
+ expect ( host . allowsSessionFor ( 'https://user.own /profile/card#me' , 'https://user.own ' ) ) . to . be . true
63
63
} )
64
64
65
- it ( 'should disallow a userId with another subdomain as origin' , ( ) => {
66
- expect ( host . allowsSessionFor ( 'https://user.test.local /profile/card#me' , 'https://other. test.local' ) ) . to . be . false
65
+ it ( 'should allow a userId with the server domain as origin' , ( ) => {
66
+ expect ( host . allowsSessionFor ( 'https://user.own /profile/card#me' , 'https://test.local' ) ) . to . be . true
67
67
} )
68
68
69
- it ( 'should allow a userId with the server domain as origin' , ( ) => {
70
- expect ( host . allowsSessionFor ( 'https://user.test.local /profile/card#me' , 'https://test.local' ) ) . to . be . true
69
+ it ( 'should allow a userId with a server subdomain as origin' , ( ) => {
70
+ expect ( host . allowsSessionFor ( 'https://user.own /profile/card#me' , 'https://other. test.local' ) ) . to . be . true
71
71
} )
72
72
73
73
it ( 'should disallow a userId from a different domain' , ( ) => {
74
- expect ( host . allowsSessionFor ( 'https://user.test.local /profile/card#me' , 'https://other.remote' ) ) . to . be . false
74
+ expect ( host . allowsSessionFor ( 'https://user.own /profile/card#me' , 'https://other.remote' ) ) . to . be . false
75
75
} )
76
76
} )
77
77
0 commit comments