@@ -7,11 +7,9 @@ describe("Telemetry cases", () => {
7
7
8
8
it . skip ( 'TelemetryAIEvent Successful case with minimal parameters' , async ( ) => {
9
9
const wrapper = new CxWrapper ( cxScanConfig ) ;
10
- const timestamp = new Date ( ) ;
11
10
const cxCommandOutput : CxCommandOutput = await wrapper . telemetryAIEvent (
12
11
"Cursor" ,
13
12
"Cursos" ,
14
- timestamp ,
15
13
"click" ,
16
14
"ast-results.viewPackageDetails" ,
17
15
"secrets" ,
@@ -21,29 +19,12 @@ describe("Telemetry cases", () => {
21
19
expect ( cxCommandOutput . exitCode ) . toBe ( 0 ) ;
22
20
} ) ;
23
21
24
- it . skip ( 'TelemetryAIEvent Successful case with past timestamp' , async ( ) => {
25
- const wrapper = new CxWrapper ( cxScanConfig ) ;
26
- const pastTimestamp = new Date ( Date . now ( ) - 3600000 ) ; // 1 hour ago
27
- const cxCommandOutput : CxCommandOutput = await wrapper . telemetryAIEvent (
28
- "openai" ,
29
- "vscode" ,
30
- pastTimestamp ,
31
- "click" ,
32
- "ast-results.viewPackageDetails" ,
33
- "oss" ,
34
- "high"
35
- ) ;
36
- console . log ( "Json object from telemetryAIEvent with past timestamp: " + JSON . stringify ( cxCommandOutput ) ) ;
37
- expect ( cxCommandOutput . exitCode ) . toBe ( 0 ) ;
38
- } ) ;
39
22
40
23
it . skip ( 'TelemetryAIEvent Successful case with edge case parameters' , async ( ) => {
41
24
const wrapper = new CxWrapper ( cxScanConfig ) ;
42
- const timestamp = new Date ( ) ;
43
25
const cxCommandOutput : CxCommandOutput = await wrapper . telemetryAIEvent (
44
26
"" ,
45
27
"" ,
46
- timestamp ,
47
28
"" ,
48
29
"" ,
49
30
"" ,
@@ -52,19 +33,4 @@ describe("Telemetry cases", () => {
52
33
console . log ( "Json object from telemetryAIEvent with empty parameters: " + JSON . stringify ( cxCommandOutput ) ) ;
53
34
expect ( typeof cxCommandOutput . exitCode ) . toBe ( 0 ) ;
54
35
} ) ;
55
-
56
- it . skip ( 'TelemetryAIEvent Successful case without timestamp' , async ( ) => {
57
- const wrapper = new CxWrapper ( cxScanConfig ) ;
58
- const cxCommandOutput : CxCommandOutput = await wrapper . telemetryAIEvent (
59
- "Copilot" ,
60
- "VS Code" ,
61
- undefined ,
62
- "click" ,
63
- "ast-results.viewPackageDetails" ,
64
- "oss" ,
65
- "medium"
66
- ) ;
67
- console . log ( "Json object from telemetryAIEvent without timestamp: " + JSON . stringify ( cxCommandOutput ) ) ;
68
- expect ( typeof cxCommandOutput . exitCode ) . toBe ( 0 ) ;
69
- } ) ;
70
36
} ) ;
0 commit comments