mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
WIP server side.
This commit is contained in:
13
server/tests/models/Option.test.js
Normal file
13
server/tests/models/Option.test.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { create, expect } from '~/testInit';
|
||||
import Option from '@/models/Option';
|
||||
import MetableCollection from '@/lib/Metable/MetableCollection';
|
||||
|
||||
describe('Model: Option', () => {
|
||||
it('Should result collection be instance of `MetableCollection` class.', async () => {
|
||||
await create('option');
|
||||
await create('option');
|
||||
const options = await Option.query();
|
||||
|
||||
expect(options).to.be.an.instanceof(MetableCollection);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user