Skip to content

Instantly share code, notes, and snippets.

@nolanlawson
Last active January 22, 2020 09:52
  • Star 1 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nolanlawson/816f138a51b86785d3e6 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