@@ -10,10 +10,10 @@ describe('Dsn', () => {
10
10
port : '1234' ,
11
11
projectId : '123' ,
12
12
protocol : 'https' ,
13
- user : 'abc' ,
13
+ publicKey : 'abc' ,
14
14
} ) ;
15
15
expect ( dsn . protocol ) . toBe ( 'https' ) ;
16
- expect ( dsn . user ) . toBe ( 'abc' ) ;
16
+ expect ( dsn . publicKey ) . toBe ( 'abc' ) ;
17
17
expect ( dsn . pass ) . toBe ( 'xyz' ) ;
18
18
expect ( dsn . host ) . toBe ( 'sentry.io' ) ;
19
19
expect ( dsn . port ) . toBe ( '1234' ) ;
@@ -26,10 +26,10 @@ describe('Dsn', () => {
26
26
host : 'sentry.io' ,
27
27
projectId : '123' ,
28
28
protocol : 'https' ,
29
- user : 'abc' ,
29
+ publicKey : 'abc' ,
30
30
} ) ;
31
31
expect ( dsn . protocol ) . toBe ( 'https' ) ;
32
- expect ( dsn . user ) . toBe ( 'abc' ) ;
32
+ expect ( dsn . publicKey ) . toBe ( 'abc' ) ;
33
33
expect ( dsn . pass ) . toBe ( '' ) ;
34
34
expect ( dsn . host ) . toBe ( 'sentry.io' ) ;
35
35
expect ( dsn . port ) . toBe ( '' ) ;
@@ -44,7 +44,7 @@ describe('Dsn', () => {
44
44
host : '' ,
45
45
projectId : '123' ,
46
46
protocol : 'https' ,
47
- user : 'abc' ,
47
+ publicKey : 'abc' ,
48
48
} ) ,
49
49
) . toThrow ( SentryError ) ;
50
50
expect (
@@ -53,7 +53,7 @@ describe('Dsn', () => {
53
53
host : 'sentry.io' ,
54
54
projectId : '' ,
55
55
protocol : 'https' ,
56
- user : 'abc' ,
56
+ publicKey : 'abc' ,
57
57
} ) ,
58
58
) . toThrow ( SentryError ) ;
59
59
expect (
@@ -62,7 +62,7 @@ describe('Dsn', () => {
62
62
host : 'sentry.io' ,
63
63
projectId : '123' ,
64
64
protocol : '' as 'http' , // Trick the type checker here
65
- user : 'abc' ,
65
+ publicKey : 'abc' ,
66
66
} ) ,
67
67
) . toThrow ( SentryError ) ;
68
68
expect (
@@ -71,7 +71,7 @@ describe('Dsn', () => {
71
71
host : 'sentry.io' ,
72
72
projectId : '123' ,
73
73
protocol : 'https' ,
74
- user : '' ,
74
+ publicKey : '' ,
75
75
} ) ,
76
76
) . toThrow ( SentryError ) ;
77
77
} ) ;
@@ -83,7 +83,7 @@ describe('Dsn', () => {
83
83
host : 'sentry.io' ,
84
84
projectId : '123' ,
85
85
protocol : 'httpx' as 'http' , // Trick the type checker here
86
- user : 'abc' ,
86
+ publicKey : 'abc' ,
87
87
} ) ,
88
88
) . toThrow ( SentryError ) ;
89
89
expect (
@@ -93,7 +93,7 @@ describe('Dsn', () => {
93
93
port : 'xxx' ,
94
94
projectId : '123' ,
95
95
protocol : 'https' ,
96
- user : 'abc' ,
96
+ publicKey : 'abc' ,
97
97
} ) ,
98
98
) . toThrow ( SentryError ) ;
99
99
} ) ;
@@ -103,7 +103,7 @@ describe('Dsn', () => {
103
103
test ( 'parses a valid full Dsn' , ( ) => {
104
104
const dsn = new Dsn ( 'https://abc:[email protected] :1234/123' ) ;
105
105
expect ( dsn . protocol ) . toBe ( 'https' ) ;
106
- expect ( dsn . user ) . toBe ( 'abc' ) ;
106
+ expect ( dsn . publicKey ) . toBe ( 'abc' ) ;
107
107
expect ( dsn . pass ) . toBe ( 'xyz' ) ;
108
108
expect ( dsn . host ) . toBe ( 'sentry.io' ) ;
109
109
expect ( dsn . port ) . toBe ( '1234' ) ;
@@ -114,7 +114,7 @@ describe('Dsn', () => {
114
114
test ( 'parses a valid partial Dsn' , ( ) => {
115
115
const dsn = new Dsn ( 'https://[email protected] /123/321' ) ;
116
116
expect ( dsn . protocol ) . toBe ( 'https' ) ;
117
- expect ( dsn . user ) . toBe ( 'abc' ) ;
117
+ expect ( dsn . publicKey ) . toBe ( 'abc' ) ;
118
118
expect ( dsn . pass ) . toBe ( '' ) ;
119
119
expect ( dsn . host ) . toBe ( 'sentry.io' ) ;
120
120
expect ( dsn . port ) . toBe ( '' ) ;
@@ -125,7 +125,7 @@ describe('Dsn', () => {
125
125
test ( 'with a long path' , ( ) => {
126
126
const dsn = new Dsn ( 'https://[email protected] /sentry/custom/installation/321' ) ;
127
127
expect ( dsn . protocol ) . toBe ( 'https' ) ;
128
- expect ( dsn . user ) . toBe ( 'abc' ) ;
128
+ expect ( dsn . publicKey ) . toBe ( 'abc' ) ;
129
129
expect ( dsn . pass ) . toBe ( '' ) ;
130
130
expect ( dsn . host ) . toBe ( 'sentry.io' ) ;
131
131
expect ( dsn . port ) . toBe ( '' ) ;
@@ -136,7 +136,7 @@ describe('Dsn', () => {
136
136
test ( 'with a query string' , ( ) => {
137
137
const dsn = new Dsn ( 'https://[email protected] /321?sample.rate=0.1&other=value' ) ;
138
138
expect ( dsn . protocol ) . toBe ( 'https' ) ;
139
- expect ( dsn . user ) . toBe ( 'abc' ) ;
139
+ expect ( dsn . publicKey ) . toBe ( 'abc' ) ;
140
140
expect ( dsn . pass ) . toBe ( '' ) ;
141
141
expect ( dsn . host ) . toBe ( 'sentry.io' ) ;
142
142
expect ( dsn . port ) . toBe ( '' ) ;
0 commit comments