mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
migrate js-api tests from Jest to Node.js native test runner (#12104)
This commit is contained in:
@@ -16,8 +16,10 @@
|
||||
*/
|
||||
|
||||
import assert from 'assert';
|
||||
import { resetGlobalMockAgent } from '../mockObjects/base.mock';
|
||||
import { BpmAuthMock, ReportsMock } from '../mockObjects';
|
||||
import { ReportApi, AlfrescoApi } from '../../src';
|
||||
import { describe, it, beforeEach, afterEach } from 'node:test';
|
||||
|
||||
describe('Activiti Report Api', () => {
|
||||
let authResponseBpmMock: BpmAuthMock;
|
||||
@@ -43,6 +45,10 @@ describe('Activiti Report Api', () => {
|
||||
await alfrescoJsApi.login('admin', 'admin');
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
resetGlobalMockAgent();
|
||||
});
|
||||
|
||||
it('should create the default reports', async () => {
|
||||
reportsMock.get200ResponseCreateDefaultReport();
|
||||
await reportApi.createDefaultReports();
|
||||
|
||||
Reference in New Issue
Block a user