mirror of
https://github.com/plausible/analytics.git
synced 2024-11-26 00:24:44 +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()
|
|
})
|