@@ -55,23 +55,23 @@ describe('SolidHost', () => {
5555 } )
5656
5757 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
5959 } )
6060
6161 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
6363 } )
6464
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
6767 } )
6868
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
7171 } )
7272
7373 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
7575 } )
7676 } )
7777
0 commit comments