mirror of
https://github.com/plausible/analytics.git
synced 2024-12-25 02:24:55 +03:00
8af3f7332a
* Add testing framework * Test query period picking behaviour
14 lines
229 B
TypeScript
14 lines
229 B
TypeScript
/** @format */
|
|
|
|
/**
|
|
* @returns clears the state that the app stores,
|
|
* to avoid individual tests impacting each other
|
|
*/
|
|
function clearStoredAppState() {
|
|
localStorage.clear()
|
|
}
|
|
|
|
beforeEach(() => {
|
|
clearStoredAppState()
|
|
})
|