mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
fix financial statements.
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
||||
tenantFactory,
|
||||
tenantWebsite
|
||||
} from '~/dbInit';
|
||||
|
||||
import DependencyGraph from '@/lib/DependencyGraph';
|
||||
|
||||
describe('Model: Account', () => {
|
||||
it('Should account model belongs to the associated account type model.', async () => {
|
||||
@@ -42,4 +42,9 @@ describe('Model: Account', () => {
|
||||
|
||||
expect(transactionsModels.length).equals(1);
|
||||
});
|
||||
|
||||
it('Should retrieve dependency graph.', async () => {
|
||||
const accountsDepGraph = await Account.tenant().depGraph().query();
|
||||
expect(accountsDepGraph).to.be.an.instanceOf(DependencyGraph);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user