File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
site/src/modules/resources Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ describe("useAgentLogs", () => {
83
83
const { hookResult, publisherResult, rerender } = mountHook ( ) ;
84
84
85
85
// Verify that logs can be received after mount
86
- const initialLogs = generateMockLogs ( 3 ) ;
86
+ const initialLogs = generateMockLogs ( 3 , new Date ( "april 5, 1997" ) ) ;
87
87
const initialEvent = new MessageEvent < string > ( "message" , {
88
88
data : JSON . stringify ( initialLogs ) ,
89
89
} ) ;
@@ -102,7 +102,7 @@ describe("useAgentLogs", () => {
102
102
// Re-enable the hook (creating an entirely new connection), and send
103
103
// new logs
104
104
rerender ( { enabled : true } ) ;
105
- const newLogs = generateMockLogs ( 3 ) ;
105
+ const newLogs = generateMockLogs ( 3 , new Date ( "october 3, 2005" ) ) ;
106
106
const newEvent = new MessageEvent < string > ( "message" , {
107
107
data : JSON . stringify ( newLogs ) ,
108
108
} ) ;
You can’t perform that action at this time.
0 commit comments