@@ -5,21 +5,38 @@ import { cleanTranscript } from '../lib/subtitles-summary.js'
5
5
test ( 'cleans transcript' , ( ) => {
6
6
const transcript = `
7
7
1
8
- 00:00:01,240 --> 00:00:06,879
9
- <font color="white" size=".72c">when we are about to do something</font>
8
+ 00:00:01,240 --> 00:00:04,630
9
+
10
+ Open ai writes to the
10
11
11
12
2
12
- 00:00:04,160 --> 00:00:10,519
13
- <font color="white" size=".72c">new</font>
13
+ 00:00:04,630 --> 00:00:04,640
14
+ Open ai writes to the
15
+
14
16
15
17
3
16
- 00:00:06,879 --> 00:00:14,080
17
- <font color="white" size=".72c">Eh after finishing</font>
18
+ 00:00:04,640 --> 00:00:09,110
19
+ Open ai writes to the
20
+ US administration their position Well it is
21
+
22
+ 4
23
+ 00:00:09,110 --> 00:00:09,120
24
+ US administration their position Well it is
25
+
26
+
27
+ 5
28
+ 00:00:09,120 --> 00:00:12,509
29
+ US administration their position Well it is
30
+ necessary that it be free from copyright from
31
+
32
+ 6
33
+ 00:00:12,509 --> 00:00:12,519
34
+ necessary that it be free from copyright from
18
35
` . trim ( )
19
36
const expectedCleanTranscript = `
20
- when we are about to do something
21
- new
22
- Eh after finishing
37
+ Open ai writes to the
38
+ US administration their position Well it is
39
+ necessary that it be free from copyright from
23
40
` . trim ( )
24
41
25
42
assert . strictEqual ( cleanTranscript ( transcript ) , expectedCleanTranscript )
0 commit comments