mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
Preserve source identity and history references through layer state
This commit is contained in:
1 parent
80c5a09f15
commit
73135a7ae4
8 files changed
+92
-37
No files matched your search
@@ -247,3 +247,17 @@ test('AIS reports limited received coverage and keeps connection state separate
|
||||
now,
|
||||
);
|
||||
});
|
||||
|
||||
test('a malformed vessel row cannot prevent admission of valid positions', async () => {
|
||||
const source = createAisStreamSource({
|
||||
fetchImpl: async () =>
|
||||
response({
|
||||
status: 'live',
|
||||
rows: [null, { mmsi: '123456789', lat: 30, lon: -97 }],
|
||||
}),
|
||||
});
|
||||
const snapshot = await source.getSnapshot();
|
||||
assert.equal(snapshot.records.length, 1);
|
||||
assert.equal(snapshot.rejectedCount, 1);
|
||||
assert.equal(snapshot.complete, false);
|
||||
});
|
||||
Reference in new issue
Block a user