Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('calls connector beginTransaction() when available', async () => {
const crudDs = new juggler.DataSource({
name: 'db',
connector: CrudConnectorStub,
});
const repo = new DefaultTransactionalRepository(Note, crudDs);
const res = await repo.beginTransaction();
expect(res).to.be.instanceOf(TransactionClass);
});
});