mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
added browser testing support to ava
This commit is contained in:
9
tests/helpers/setup-browser-env.js
Normal file
9
tests/helpers/setup-browser-env.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import browserEnv from 'browser-env'
|
||||
browserEnv(['window', 'document'])
|
||||
|
||||
window.localStorage = {
|
||||
// polyfill
|
||||
getItem () {
|
||||
return '{}'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user