Skip to content

Commit

Permalink
fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Apr 10, 2024
1 parent ceccab6 commit ec9815b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/37.database.serialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ describe('Database#serialize()', function () {
this.db = new Database();
const buffer = this.db.serialize();
expect(buffer).to.be.an.instanceof(Buffer);
expect(buffer.length).to.equal(0);
expect(buffer.length).to.be.lte(4096);
this.db.close();
this.db = new Database(buffer);
expect(this.db.serialize().length).to.equal(0);
expect(this.db.prepare("select * from sqlite_master").all()).to.deep.equal([]);
expect(this.db.serialize().length).to.be.lte(4096);
});
});

0 comments on commit ec9815b

Please sign in to comment.