Skip to content

Instantly share code, notes, and snippets.

@willholley
Forked from nolanlawson/_readme.md
Created September 21, 2016 17:38
Show Gist options
  • Save willholley/c3c66bccef4b968ed30b20abc9bb5b0b to your computer and use it in GitHub Desktop.
Save willholley/c3c66bccef4b968ed30b20abc9bb5b0b 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