mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
- feat: remove unnecessary migrations, controllers and models files.
- feat: metable store - feat: metable store with settings store. - feat: settings middleware to auto-save and load. - feat: DI db manager to master container. - feat: write some logs to sale invoices.
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
import { create, expect } from '~/testInit';
|
||||
import Option from '@/models/Option';
|
||||
import MetableCollection from '@/lib/Metable/MetableCollection';
|
||||
import {
|
||||
tenantFactory,
|
||||
tenantWebsite,
|
||||
} from '~/dbInit';
|
||||
|
||||
|
||||
describe('Model: Option', () => {
|
||||
it('Should result collection be instance of `MetableCollection` class.', async () => {
|
||||
await tenantFactory.create('option');
|
||||
await tenantFactory.create('option');
|
||||
const options = await Option.tenant().query();
|
||||
|
||||
expect(options).to.be.an.instanceof(MetableCollection);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user