test(model/db): test instantiation

This commit is contained in:
2026-01-17 22:56:19 -03:00
parent af84abe3f8
commit adc20904cc
5 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
import { DBChain } from './DBChain';
describe('Chain', () => {
it('should create', () => {
expect(new DBChain('mock', 'mock.jpg', 1)).toBeTruthy();
});
});

View File

@@ -0,0 +1,7 @@
import { DBEstablishment } from './DBEstablishment';
describe('DBEstablishment', () => {
it('should create', () => {
expect(new DBEstablishment('mock address', 1, 1)).toBeTruthy();
});
});

View File

@@ -0,0 +1,7 @@
import { DBProduct } from './DBProduct';
describe('DBProduct', () => {
it('should create', () => {
expect(new DBProduct('121212112', 'product mock', 'mock.jpg', 1)).toBeTruthy();
});
});

View File

@@ -0,0 +1,7 @@
import { DBProductEstablishment } from './DBProductEstablishment';
describe('DBProductEstablishment', () => {
it('should create', () => {
expect(new DBProductEstablishment(1, 1, 1)).toBeTruthy();
});
});

View File

@@ -0,0 +1,7 @@
import { DBPurchase } from './DBPurchase';
describe('DBPurchase', () => {
it('should create', () => {
expect(new DBPurchase(1, 1, Date.now(), 1000, 1, 1)).toBeTruthy();
});
});