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 { AlfrescoApi, ModelsApi } from '../../src';
|
||||
import { BpmAuthMock, ModelsMock } from '../mockObjects';
|
||||
import { describe, it, beforeEach, afterEach } from 'node:test';
|
||||
|
||||
describe('Activiti Models Api', () => {
|
||||
let authResponseBpmMock: BpmAuthMock;
|
||||
@@ -42,6 +44,10 @@ describe('Activiti Models Api', () => {
|
||||
await alfrescoJsApi.login('admin', 'admin');
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
resetGlobalMockAgent();
|
||||
});
|
||||
|
||||
it('get activiti model', async () => {
|
||||
modelsMock.get200getModels();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user