Addnew sheets (armor, weapons, malefica) and v13 support

This commit is contained in:
2025-05-18 23:51:26 +02:00
parent 7672f861ff
commit 995d61e1c6
4478 changed files with 667857 additions and 620 deletions

27
node_modules/nedb-promises/test/b.insert.test.js generated vendored Normal file
View File

@@ -0,0 +1,27 @@
const Datastore = require('../src/Datastore');
describe('testing document insertion', () => {
const docs = [
{ name: '1st document' },
{ name: '2nd document' },
{ name: '3rd document' },
];
describe('single', () => {
it('should insert single document', async () => {
const datastore = Datastore.create();
const insertedDoc = await datastore.insert(docs[0]);
expect(insertedDoc).toMatchObject({ name: '1st document' });
expect(insertedDoc).toHaveProperty('_id');
});
});
describe('bulk', () => {
it('should insert multiple documents', async () => {
const datastore = Datastore.create();
const insertedDocs = await datastore.insert(docs);
expect(insertedDocs.length).toBe(3);
expect(insertedDocs).toMatchObject(docs);
});
});
});