fix some type errors in VideoList.test.tsx

For whatever reason, these aren't caught in my current setup. I'm trying
to upgrade the whole frontend mess (typescript version, react-scripts
version) and they're caught then.
This commit is contained in:
Scott Lamb 2022-03-03 12:28:27 -08:00
parent b2fa415823
commit d40715c210

View File

@ -29,6 +29,7 @@ const TEST_STREAM: Stream = {
totalSampleFileBytes: 0, totalSampleFileBytes: 0,
fsBytes: 0, fsBytes: 0,
days: {}, days: {},
record: true,
}; };
const TEST_RANGE1: [number, number] = [ const TEST_RANGE1: [number, number] = [
@ -69,6 +70,8 @@ const TEST_VIDEO_SAMPLE_ENTRIES: { [id: number]: VideoSampleEntry } = {
4: { 4: {
width: 1920, width: 1920,
height: 1080, height: 1080,
aspectWidth: 16,
aspectHeight: 9,
}, },
}; };
@ -119,6 +122,7 @@ test("load", async () => {
range90k={TEST_RANGE1} range90k={TEST_RANGE1}
setActiveRecording={() => {}} setActiveRecording={() => {}}
formatTime={TestFormat} formatTime={TestFormat}
trimStartAndEnd={false}
/> />
</table> </table>
); );
@ -136,6 +140,7 @@ test("slow replace", async () => {
range90k={TEST_RANGE1} range90k={TEST_RANGE1}
setActiveRecording={() => {}} setActiveRecording={() => {}}
formatTime={TestFormat} formatTime={TestFormat}
trimStartAndEnd={false}
/> />
</table> </table>
); );
@ -147,6 +152,7 @@ test("slow replace", async () => {
range90k={TEST_RANGE2} range90k={TEST_RANGE2}
setActiveRecording={() => {}} setActiveRecording={() => {}}
formatTime={TestFormat} formatTime={TestFormat}
trimStartAndEnd={false}
/> />
</table> </table>
); );
@ -169,6 +175,7 @@ test("error", async () => {
range90k={[42, 64]} range90k={[42, 64]}
setActiveRecording={() => {}} setActiveRecording={() => {}}
formatTime={TestFormat} formatTime={TestFormat}
trimStartAndEnd={false}
/> />
</table> </table>
); );