Instantly share code, notes, and snippets.

Embed
What would you like to do?
Demo of a PouchDB reproducible test case
<html>
<body>
<h1>Demo of a PouchDB bug report</h1>
<script src="//cdn.jsdelivr.net/pouchdb/latest/pouchdb.js"></script>
<script>
// Destroy and recreate the database every time the page is reloaded
new PouchDB('testdb').destroy().then(function () {
var db = new PouchDB('testdb');
// Put your test here!
}).catch(function (err) {
console.log(err);
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment