mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
feat: Query History CRUD list view (#11574)
This commit is contained in:
@@ -103,15 +103,15 @@ describe('AnnotationList', () => {
|
||||
|
||||
it('fetches annotation layer', () => {
|
||||
const callsQ = fetchMock.calls(/annotation_layer\/1/);
|
||||
expect(callsQ).toHaveLength(3);
|
||||
expect(callsQ[2][0]).toMatchInlineSnapshot(
|
||||
expect(callsQ).toHaveLength(2);
|
||||
expect(callsQ[1][0]).toMatchInlineSnapshot(
|
||||
`"http://localhost/api/v1/annotation_layer/1"`,
|
||||
);
|
||||
});
|
||||
|
||||
it('fetches annotations', () => {
|
||||
const callsQ = fetchMock.calls(/annotation_layer\/1\/annotation/);
|
||||
expect(callsQ).toHaveLength(2);
|
||||
expect(callsQ).toHaveLength(1);
|
||||
expect(callsQ[0][0]).toMatchInlineSnapshot(
|
||||
`"http://localhost/api/v1/annotation_layer/1/annotation/?q=(order_column:short_descr,order_direction:desc,page:0,page_size:25)"`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user