grafana/public
Laura Benz 439dd062da
Explore: Add unit tests for addQueryRow() and generateEmptyQuery() (#60977)
* feat: add condition

* refactor: clea up

* refactor: remove changes and add my solution as comment

* feat: add test

* refactor: test preparation

* refactor: finish test prep and remove planned changed from addQueryRow()

* refactor: finish first test

* refactor: add required props after removing any (not complete)

* refactor: replace props and clean up

* refactor: add another test

* refactor: extend tests with datasourceInstance

* refactor: add test for mixed ds enabled

* refactor: remove typescript errors

* feat: add first attempt of a test for generateEmptyQuery()

* feat: setup first test for generateEmptyQuery()

* refactor: remove typescript errors

* feat: add another test for generateEmptyQuery()

* refactor: add some assertions

* refactor: restructure tests

* refactor: remove doubled code

* refactor: remove typescript errors

* refactor: remove mocking mistake and add test

* refactor: remove mocking mistakes

* refactor: repair mock for feature toggle

* refactor: clean up

* refactor: changes from code review
2023-01-31 10:13:08 +01:00
..
app Explore: Add unit tests for addQueryRow() and generateEmptyQuery() (#60977) 2023-01-31 10:13:08 +01:00
dashboards Chore: Update version of @grafana/eslint-config (#53403) 2022-08-08 15:19:15 +01:00
emails SMTP: Update email templates to include populated <title> tag (#61430) 2023-01-30 16:56:23 -05:00
fonts Theme: Use Inter font by default (#59544) 2022-12-01 11:59:37 +00:00
gazetteer Geomap: Add GeoJSON gazetteer (#40589) 2021-10-19 21:05:55 -07:00
img Alerting: Landing page v2 (#61600) 2023-01-18 12:40:09 +01:00
lib AzureMonitor: Kusto language support (#33528) 2021-05-11 16:48:59 +02:00
locales Docs: Update wording / text and copy (#61868) 2023-01-30 15:26:21 +00:00
maps Geomap: include sample geojson files (#39057) 2021-09-10 09:05:03 -07:00
sass PublicDashboards: A unique page for public dashboards (#60744) 2023-01-10 14:50:37 -03:00
test Chore: convert last test to RTL and remove Enzyme references (#61918) 2023-01-24 09:20:47 +00:00
testdata MarketTrend: add new alpha panel (#40909) 2021-11-05 18:01:26 -07:00
vendor Plugins: Allow loading panel plugins from a CDN (#59096) 2023-01-27 15:08:17 +01:00
views Preferences: Add theme preference to match system theme (#61986) 2023-01-30 10:51:51 +01:00
api-merged.json Alerting: Allow pausing alerts from provisioning (#62263) 2023-01-30 16:29:05 +01:00
api-spec.json Chore: Use same JSON tag casing everywhere for parent UID (#61935) 2023-01-24 10:20:28 +02:00
openapi3.json Chore: Use same JSON tag casing everywhere for parent UID (#61935) 2023-01-24 10:20:28 +02:00
robots.txt