mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 02:44:02 +00:00
refactor(perimeters): share getSnapshotDetail without this
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
f3faf373f0
commit
f6244e8fef
2 files changed
+33
-27
No files matched your search
@@ -172,3 +172,10 @@ test('the snapshot detail carries the proxy staleness and fetch time', async ()
|
||||
});
|
||||
assert.deepEqual(await source.getSnapshot(), []);
|
||||
});
|
||||
|
||||
test('getSnapshot works when taken off its source object', async () => {
|
||||
const { getSnapshot } = createWfigsPerimeterSource({
|
||||
fetchImpl: async () => Response.json({ rows: [] }),
|
||||
});
|
||||
assert.deepEqual(await getSnapshot(), []);
|
||||
});
|
||||
Reference in new issue
Block a user