Initial import

This commit is contained in:
2025-11-05 20:35:04 +01:00
commit 5b1fd847c2
4586 changed files with 685044 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
const Cursor = require('../src/Cursor');
const Datastore = require('../src/Datastore');
const Persistence = require('@seald-io/nedb/lib/persistence');
describe('testing datastore proxy', () => {
const datastore = Datastore.create('test.db');
it('should not affect promise returns', () => {
expect(datastore.find({}) instanceof Cursor).toBe(true);
expect(datastore.insert({ proxy: true }) instanceof Promise).toBe(true);
});
it('should return original datastore values', () => {
expect(datastore.persistence instanceof Persistence).toBe(true);
});
});