Skip to content

Instantly share code, notes, and snippets.

@esironal
Forked from nolanlawson/_readme.md
Created October 2, 2018 17:36
Show Gist options
  • Save esironal/6cfa7a23230bc591cbb9e704ab4b4de3 to your computer and use it in GitHub Desktop.
Save esironal/6cfa7a23230bc591cbb9e704ab4b4de3 to your computer and use it in GitHub Desktop.
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