Skip to content

Commit 7fa0ed4

Browse files
committed
fix tests, remove logs
1 parent 43ad5ad commit 7fa0ed4

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

app/components/InstrumentData.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export function InstrumentData({ instrumentName }: { instrumentName: string }) {
6969
if (updatedPVName == instListPV && updatedPVbytes != null) {
7070
const instlist = instListFromBytes(updatedPVbytes);
7171
const prefix = getPrefix(instlist, instName);
72-
let instrument = new Instrument(prefix);
72+
const instrument = new Instrument(prefix);
7373
setCurrentInstrument(instrument);
7474

7575
sendJsonMessage({

app/components/InstrumentsDisplay.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,6 @@ export default function InstrumentsDisplay({
7171
});
7272
},
7373
onMessage: (m) => {
74-
console.log("BEGIN");
75-
console.log(lastJsonMessage);
76-
console.log(m.data);
77-
console.log("END");
7874
const updatedPV: IfcPVWSMessage = JSON.parse(m.data);
7975
const updatedPVName: string = updatedPV.pv;
8076
const updatedPVbytes: string | null | undefined = updatedPV.b64byt;

app/components/__snapshots__/InstrumentWallCard.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ exports[`renders instrumentwallcard unchanged when runstate is unknown 1`] = `
5252
<span
5353
class="text-xs "
5454
>
55-
UNKNOWN
55+
UNREACHABLE
5656
</span>
5757
</div>
5858
</a>

app/components/__snapshots__/TopBar.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ exports[`renders topbar unchanged 1`] = `
2525
<span
2626
id="runStateSpan"
2727
>
28-
UNKNOWN
28+
UNREACHABLE
2929
</span>
3030
</h2>
3131
<h3

0 commit comments

Comments
 (0)