Finished avionics test engineering internship
This commit is contained in:
@@ -7,10 +7,13 @@ const keys: { [key: string]: string } = {
|
||||
ADCP: "Acoustic doppler current profiler",
|
||||
COTS: "Consumer off-the-shelf",
|
||||
CTD: "Conductivity, temperature, and depth sensor",
|
||||
DUTs: "Devices under test",
|
||||
GUI: "Graphical user interface",
|
||||
NUC: "A small and low-power computer made by Intel",
|
||||
PCBs: "Printed circuit boards",
|
||||
TDD: "Test driven development",
|
||||
UPS: "Uninterruptible power supply",
|
||||
VISA: "Virtual instrument software architecture",
|
||||
};
|
||||
|
||||
const key: string | undefined = Astro.props.key;
|
||||
@@ -21,6 +24,12 @@ if (key && keys.hasOwnProperty(key)) {
|
||||
word = key;
|
||||
definition = keys[key];
|
||||
}
|
||||
|
||||
if (!word || !definition) {
|
||||
throw new Error(
|
||||
`Popover definition is missing! Inputs were\nkey: ${key}\nword: ${word}\ndefinition: ${definition}`,
|
||||
);
|
||||
}
|
||||
---
|
||||
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user