Skip to content

Commit

Permalink
Move docmaps/docmap tests in their intended location #3239
Browse files Browse the repository at this point in the history
  • Loading branch information
giorgiosironi committed May 15, 2024
1 parent fa82d50 commit 37649df
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 41 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import * as E from 'fp-ts/Either';
import * as TE from 'fp-ts/TaskEither';
import { pipe } from 'fp-ts/function';
import { constructDocmapViewModel, Ports } from '../../../src/read-side/non-html-views/docmaps/docmap/construct-docmap-view-model';
import { DocmapViewModel } from '../../../src/read-side/non-html-views/docmaps/docmap/view-model';
import { toExpressionDoi } from '../../../src/types/article-id';
import * as DE from '../../../src/types/data-error';
import { RecordEvaluationPublicationCommand } from '../../../src/write-side/commands';
import { TestFramework, createTestFramework } from '../../framework';
import { arbitraryUrl } from '../../helpers';
import { arbitraryArticleId } from '../../types/article-id.helper';
import { arbitraryDataError } from '../../types/data-error.helper';
import { arbitraryEvaluationLocator } from '../../types/evaluation-locator.helper';
import { arbitraryGroupId } from '../../types/group-id.helper';
import { arbitraryAddGroupCommand } from '../../write-side/commands/add-group-command.helper';
import { arbitraryRecordEvaluationPublicationCommand } from '../../write-side/commands/record-evaluation-publication-command.helper';
import { arbitraryUpdateEvaluationCommand } from '../../write-side/commands/update-evaluation-command.helper';
import { constructDocmapViewModel, Ports } from '../../../../../src/read-side/non-html-views/docmaps/docmap/construct-docmap-view-model';
import { DocmapViewModel } from '../../../../../src/read-side/non-html-views/docmaps/docmap/view-model';
import { toExpressionDoi } from '../../../../../src/types/article-id';
import * as DE from '../../../../../src/types/data-error';
import { RecordEvaluationPublicationCommand } from '../../../../../src/write-side/commands';
import { TestFramework, createTestFramework } from '../../../../framework';
import { arbitraryUrl } from '../../../../helpers';
import { arbitraryArticleId } from '../../../../types/article-id.helper';
import { arbitraryDataError } from '../../../../types/data-error.helper';
import { arbitraryEvaluationLocator } from '../../../../types/evaluation-locator.helper';
import { arbitraryGroupId } from '../../../../types/group-id.helper';
import { arbitraryAddGroupCommand } from '../../../../write-side/commands/add-group-command.helper';
import { arbitraryRecordEvaluationPublicationCommand } from '../../../../write-side/commands/record-evaluation-publication-command.helper';
import { arbitraryUpdateEvaluationCommand } from '../../../../write-side/commands/update-evaluation-command.helper';

const selectedGroupId = arbitraryGroupId();
const articleId = arbitraryArticleId();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ import { URL } from 'url';
import * as TE from 'fp-ts/TaskEither';
import { identity, pipe } from 'fp-ts/function';
import { StatusCodes } from 'http-status-codes';
import { generateDocmaps } from '../../../src/read-side/non-html-views/docmaps/docmap';
import { Docmap } from '../../../src/read-side/non-html-views/docmaps/docmap/docmap-type';
import { Ports } from '../../../src/read-side/non-html-views/docmaps/docmap/generate-docmaps';
import { toExpressionDoi } from '../../../src/types/article-id';
import * as DE from '../../../src/types/data-error';
import { EvaluationLocator } from '../../../src/types/evaluation-locator';
import * as GID from '../../../src/types/group-id';
import { RecordEvaluationPublicationCommand } from '../../../src/write-side/commands/record-evaluation-publication';
import { TestFramework, createTestFramework } from '../../framework';
import { abortTest } from '../../framework/abort-test';
import { shouldNotBeCalled } from '../../should-not-be-called';
import { arbitraryArticleId } from '../../types/article-id.helper';
import { arbitraryNcrcId } from '../../types/evaluation-locator.helper';
import { arbitraryAddGroupCommand } from '../../write-side/commands/add-group-command.helper';
import { arbitraryRecordEvaluationPublicationCommand } from '../../write-side/commands/record-evaluation-publication-command.helper';
import { generateDocmaps } from '../../../../../src/read-side/non-html-views/docmaps/docmap';
import { Docmap } from '../../../../../src/read-side/non-html-views/docmaps/docmap/docmap-type';
import { Ports } from '../../../../../src/read-side/non-html-views/docmaps/docmap/generate-docmaps';
import { toExpressionDoi } from '../../../../../src/types/article-id';
import * as DE from '../../../../../src/types/data-error';
import { EvaluationLocator } from '../../../../../src/types/evaluation-locator';
import * as GID from '../../../../../src/types/group-id';
import { RecordEvaluationPublicationCommand } from '../../../../../src/write-side/commands/record-evaluation-publication';
import { TestFramework, createTestFramework } from '../../../../framework';
import { abortTest } from '../../../../framework/abort-test';
import { shouldNotBeCalled } from '../../../../should-not-be-called';
import { arbitraryArticleId } from '../../../../types/article-id.helper';
import { arbitraryNcrcId } from '../../../../types/evaluation-locator.helper';
import { arbitraryAddGroupCommand } from '../../../../write-side/commands/add-group-command.helper';
import { arbitraryRecordEvaluationPublicationCommand } from '../../../../write-side/commands/record-evaluation-publication-command.helper';

describe('generate-docmaps', () => {
const articleId = arbitraryArticleId();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { publisherAccountId } from '../../../src/read-side/non-html-views/docmaps/docmap/publisher-account-id';
import { arbitraryGroup } from '../../types/group.helper';
import { publisherAccountId } from '../../../../../src/read-side/non-html-views/docmaps/docmap/publisher-account-id';
import { arbitraryGroup } from '../../../../types/group.helper';

describe('publisher-account-id', () => {
const group = arbitraryGroup();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
/* eslint-disable jest/require-hook */
import { URL } from 'url';
import * as RNEA from 'fp-ts/ReadonlyNonEmptyArray';
import { Docmap } from '../../../src/read-side/non-html-views/docmaps/docmap/docmap-type';
import { Evaluation } from '../../../src/read-side/non-html-views/docmaps/docmap/evaluation';
import { anonymous } from '../../../src/read-side/non-html-views/docmaps/docmap/peer-reviewer';
import { publisherAccountId } from '../../../src/read-side/non-html-views/docmaps/docmap/publisher-account-id';
import { renderDocmap } from '../../../src/read-side/non-html-views/docmaps/docmap/render-docmap';
import { ExpressionDoi } from '../../../src/types/expression-doi';
import { Docmap } from '../../../../../src/read-side/non-html-views/docmaps/docmap/docmap-type';
import { Evaluation } from '../../../../../src/read-side/non-html-views/docmaps/docmap/evaluation';
import { anonymous } from '../../../../../src/read-side/non-html-views/docmaps/docmap/peer-reviewer';
import { publisherAccountId } from '../../../../../src/read-side/non-html-views/docmaps/docmap/publisher-account-id';
import { renderDocmap } from '../../../../../src/read-side/non-html-views/docmaps/docmap/render-docmap';
import { ExpressionDoi } from '../../../../../src/types/expression-doi';
import {
arbitraryDate, arbitraryString, arbitraryUrl,
} from '../../helpers';
import { arbitraryEvaluationLocator } from '../../types/evaluation-locator.helper';
import { arbitraryExpressionDoi } from '../../types/expression-doi.helper';
import { arbitraryGroup } from '../../types/group.helper';
} from '../../../../helpers';
import { arbitraryEvaluationLocator } from '../../../../types/evaluation-locator.helper';
import { arbitraryExpressionDoi } from '../../../../types/expression-doi.helper';
import { arbitraryGroup } from '../../../../types/group.helper';

const itIsAValidInput = (inputs: Docmap['steps'][number]['inputs'], doi: ExpressionDoi) => {
it('has a single (deprecated) input', () => {
Expand Down

0 comments on commit 37649df

Please sign in to comment.