All files / test dataProvider.ts

100% Statements 18/18
100% Branches 0/0
100% Functions 1/1
100% Lines 18/18

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 236x 6x 6x 6x 6x 6x 6x 6x 6x   6x 6x   6x   6x 6x 6x 6x 6x 6x    
import { appInstall, DEFAULT_USER } from '@orchesty/nodejs-connectors/test/DataProvider';
import { container } from '@orchesty/nodejs-connectors/test/TestAbstract';
import JsonPlaceholderGetCommentListBatch from '../src/Batch/JsonPlaceholderGetCommentListBatch';
import JsonPlaceholderGetPostListBatch from '../src/Batch/JsonPlaceholderGetPostListBatch';
import JsonPlaceholderGetUserListBatch from '../src/Batch/JsonPlaceholderGetUserListBatch';
import JsonPlaceholderGetCommentConnector from '../src/Connector/JsonPlaceholderGetCommentConnector';
import JsonPlaceholderGetPostConnector from '../src/Connector/JsonPlaceholderGetPostConnector';
import JsonPlaceholderGetUserConnector from '../src/Connector/JsonPlaceholderGetUserConnector';
import JsonPlaceholderApplication, { NAME as JSON_PLACEHOLDER_APP } from '../src/JsonPlaceholderApplication';
 
export default function init(): void {
    appInstall(JSON_PLACEHOLDER_APP, DEFAULT_USER, {});
 
    const app = new JsonPlaceholderApplication();
 
    container.setNode(new JsonPlaceholderGetCommentListBatch(), app);
    container.setNode(new JsonPlaceholderGetPostListBatch(), app);
    container.setNode(new JsonPlaceholderGetUserListBatch(), app);
    container.setNode(new JsonPlaceholderGetCommentConnector(), app);
    container.setNode(new JsonPlaceholderGetPostConnector(), app);
    container.setNode(new JsonPlaceholderGetUserConnector(), app);
}