mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-25 14:45:54 -05:00
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:
parent
b2fa415823
commit
d40715c210
@ -29,6 +29,7 @@ const TEST_STREAM: Stream = {
|
||||
totalSampleFileBytes: 0,
|
||||
fsBytes: 0,
|
||||
days: {},
|
||||
record: true,
|
||||
};
|
||||
|
||||
const TEST_RANGE1: [number, number] = [
|
||||
@ -69,6 +70,8 @@ const TEST_VIDEO_SAMPLE_ENTRIES: { [id: number]: VideoSampleEntry } = {
|
||||
4: {
|
||||
width: 1920,
|
||||
height: 1080,
|
||||
aspectWidth: 16,
|
||||
aspectHeight: 9,
|
||||
},
|
||||
};
|
||||
|
||||
@ -119,6 +122,7 @@ test("load", async () => {
|
||||
range90k={TEST_RANGE1}
|
||||
setActiveRecording={() => {}}
|
||||
formatTime={TestFormat}
|
||||
trimStartAndEnd={false}
|
||||
/>
|
||||
</table>
|
||||
);
|
||||
@ -136,6 +140,7 @@ test("slow replace", async () => {
|
||||
range90k={TEST_RANGE1}
|
||||
setActiveRecording={() => {}}
|
||||
formatTime={TestFormat}
|
||||
trimStartAndEnd={false}
|
||||
/>
|
||||
</table>
|
||||
);
|
||||
@ -147,6 +152,7 @@ test("slow replace", async () => {
|
||||
range90k={TEST_RANGE2}
|
||||
setActiveRecording={() => {}}
|
||||
formatTime={TestFormat}
|
||||
trimStartAndEnd={false}
|
||||
/>
|
||||
</table>
|
||||
);
|
||||
@ -169,6 +175,7 @@ test("error", async () => {
|
||||
range90k={[42, 64]}
|
||||
setActiveRecording={() => {}}
|
||||
formatTime={TestFormat}
|
||||
trimStartAndEnd={false}
|
||||
/>
|
||||
</table>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user