1
0
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:
Yu-Hung Ou
2018-03-14 21:46:20 +11:00
parent 1af374439d
commit b5cb209f14
3 changed files with 351 additions and 11 deletions

View File

@@ -0,0 +1,9 @@
import browserEnv from 'browser-env'
browserEnv(['window', 'document'])
window.localStorage = {
// polyfill
getItem () {
return '{}'
}
}