test(model/db): test instantiation
This commit is contained in:
7
src/app/models/db/DBChain.spec.ts
Normal file
7
src/app/models/db/DBChain.spec.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { DBChain } from './DBChain';
|
||||
|
||||
describe('Chain', () => {
|
||||
it('should create', () => {
|
||||
expect(new DBChain('mock', 'mock.jpg', 1)).toBeTruthy();
|
||||
});
|
||||
});
|
||||
7
src/app/models/db/DBEstablishment.spec.ts
Normal file
7
src/app/models/db/DBEstablishment.spec.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { DBEstablishment } from './DBEstablishment';
|
||||
|
||||
describe('DBEstablishment', () => {
|
||||
it('should create', () => {
|
||||
expect(new DBEstablishment('mock address', 1, 1)).toBeTruthy();
|
||||
});
|
||||
});
|
||||
7
src/app/models/db/DBProduct.spec.ts
Normal file
7
src/app/models/db/DBProduct.spec.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { DBProduct } from './DBProduct';
|
||||
|
||||
describe('DBProduct', () => {
|
||||
it('should create', () => {
|
||||
expect(new DBProduct('121212112', 'product mock', 'mock.jpg', 1)).toBeTruthy();
|
||||
});
|
||||
});
|
||||
7
src/app/models/db/DBProductEstablishment.spec.ts
Normal file
7
src/app/models/db/DBProductEstablishment.spec.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { DBProductEstablishment } from './DBProductEstablishment';
|
||||
|
||||
describe('DBProductEstablishment', () => {
|
||||
it('should create', () => {
|
||||
expect(new DBProductEstablishment(1, 1, 1)).toBeTruthy();
|
||||
});
|
||||
});
|
||||
7
src/app/models/db/DBPurchase.spec.ts
Normal file
7
src/app/models/db/DBPurchase.spec.ts
Normal 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();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user