@@ -10,10 +10,10 @@ describe('Dsn', () => {
1010 port : '1234' ,
1111 projectId : '123' ,
1212 protocol : 'https' ,
13- user : 'abc' ,
13+ publicKey : 'abc' ,
1414 } ) ;
1515 expect ( dsn . protocol ) . toBe ( 'https' ) ;
16- expect ( dsn . user ) . toBe ( 'abc' ) ;
16+ expect ( dsn . publicKey ) . toBe ( 'abc' ) ;
1717 expect ( dsn . pass ) . toBe ( 'xyz' ) ;
1818 expect ( dsn . host ) . toBe ( 'sentry.io' ) ;
1919 expect ( dsn . port ) . toBe ( '1234' ) ;
@@ -26,10 +26,10 @@ describe('Dsn', () => {
2626 host : 'sentry.io' ,
2727 projectId : '123' ,
2828 protocol : 'https' ,
29- user : 'abc' ,
29+ publicKey : 'abc' ,
3030 } ) ;
3131 expect ( dsn . protocol ) . toBe ( 'https' ) ;
32- expect ( dsn . user ) . toBe ( 'abc' ) ;
32+ expect ( dsn . publicKey ) . toBe ( 'abc' ) ;
3333 expect ( dsn . pass ) . toBe ( '' ) ;
3434 expect ( dsn . host ) . toBe ( 'sentry.io' ) ;
3535 expect ( dsn . port ) . toBe ( '' ) ;
@@ -44,7 +44,7 @@ describe('Dsn', () => {
4444 host : '' ,
4545 projectId : '123' ,
4646 protocol : 'https' ,
47- user : 'abc' ,
47+ publicKey : 'abc' ,
4848 } ) ,
4949 ) . toThrow ( SentryError ) ;
5050 expect (
@@ -53,7 +53,7 @@ describe('Dsn', () => {
5353 host : 'sentry.io' ,
5454 projectId : '' ,
5555 protocol : 'https' ,
56- user : 'abc' ,
56+ publicKey : 'abc' ,
5757 } ) ,
5858 ) . toThrow ( SentryError ) ;
5959 expect (
@@ -62,7 +62,7 @@ describe('Dsn', () => {
6262 host : 'sentry.io' ,
6363 projectId : '123' ,
6464 protocol : '' as 'http' , // Trick the type checker here
65- user : 'abc' ,
65+ publicKey : 'abc' ,
6666 } ) ,
6767 ) . toThrow ( SentryError ) ;
6868 expect (
@@ -71,7 +71,7 @@ describe('Dsn', () => {
7171 host : 'sentry.io' ,
7272 projectId : '123' ,
7373 protocol : 'https' ,
74- user : '' ,
74+ publicKey : '' ,
7575 } ) ,
7676 ) . toThrow ( SentryError ) ;
7777 } ) ;
@@ -83,7 +83,7 @@ describe('Dsn', () => {
8383 host : 'sentry.io' ,
8484 projectId : '123' ,
8585 protocol : 'httpx' as 'http' , // Trick the type checker here
86- user : 'abc' ,
86+ publicKey : 'abc' ,
8787 } ) ,
8888 ) . toThrow ( SentryError ) ;
8989 expect (
@@ -93,7 +93,7 @@ describe('Dsn', () => {
9393 port : 'xxx' ,
9494 projectId : '123' ,
9595 protocol : 'https' ,
96- user : 'abc' ,
96+ publicKey : 'abc' ,
9797 } ) ,
9898 ) . toThrow ( SentryError ) ;
9999 } ) ;
@@ -103,7 +103,7 @@ describe('Dsn', () => {
103103 test ( 'parses a valid full Dsn' , ( ) => {
104104 const dsn = new Dsn ( 'https://abc:[email protected] :1234/123' ) ; 105105 expect ( dsn . protocol ) . toBe ( 'https' ) ;
106- expect ( dsn . user ) . toBe ( 'abc' ) ;
106+ expect ( dsn . publicKey ) . toBe ( 'abc' ) ;
107107 expect ( dsn . pass ) . toBe ( 'xyz' ) ;
108108 expect ( dsn . host ) . toBe ( 'sentry.io' ) ;
109109 expect ( dsn . port ) . toBe ( '1234' ) ;
@@ -114,7 +114,7 @@ describe('Dsn', () => {
114114 test ( 'parses a valid partial Dsn' , ( ) => {
115115 const dsn = new Dsn ( 'https://[email protected] /123/321' ) ; 116116 expect ( dsn . protocol ) . toBe ( 'https' ) ;
117- expect ( dsn . user ) . toBe ( 'abc' ) ;
117+ expect ( dsn . publicKey ) . toBe ( 'abc' ) ;
118118 expect ( dsn . pass ) . toBe ( '' ) ;
119119 expect ( dsn . host ) . toBe ( 'sentry.io' ) ;
120120 expect ( dsn . port ) . toBe ( '' ) ;
@@ -125,7 +125,7 @@ describe('Dsn', () => {
125125 test ( 'with a long path' , ( ) => {
126126 const dsn = new Dsn ( 'https://[email protected] /sentry/custom/installation/321' ) ; 127127 expect ( dsn . protocol ) . toBe ( 'https' ) ;
128- expect ( dsn . user ) . toBe ( 'abc' ) ;
128+ expect ( dsn . publicKey ) . toBe ( 'abc' ) ;
129129 expect ( dsn . pass ) . toBe ( '' ) ;
130130 expect ( dsn . host ) . toBe ( 'sentry.io' ) ;
131131 expect ( dsn . port ) . toBe ( '' ) ;
@@ -136,7 +136,7 @@ describe('Dsn', () => {
136136 test ( 'with a query string' , ( ) => {
137137 const dsn = new Dsn ( 'https://[email protected] /321?sample.rate=0.1&other=value' ) ; 138138 expect ( dsn . protocol ) . toBe ( 'https' ) ;
139- expect ( dsn . user ) . toBe ( 'abc' ) ;
139+ expect ( dsn . publicKey ) . toBe ( 'abc' ) ;
140140 expect ( dsn . pass ) . toBe ( '' ) ;
141141 expect ( dsn . host ) . toBe ( 'sentry.io' ) ;
142142 expect ( dsn . port ) . toBe ( '' ) ;
0 commit comments