Initial system import

This commit is contained in:
2025-12-25 23:08:06 +01:00
commit 4beb5806eb
4623 changed files with 682363 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);
});
});