Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
klacabane committed Sep 11, 2024
1 parent 62b89c0 commit 77fb3ac
Show file tree
Hide file tree
Showing 8 changed files with 442 additions and 12 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@
* 2.0.
*/

import { entityDefinition } from '../helpers/fixtures/entity_definition';
import { entityDefinition, builtInEntityDefinition } from '../helpers/fixtures';
import { generateHistoryProcessors } from './generate_history_processors';

describe('generateHistoryProcessors(definition)', () => {
it('should genearte a valid pipeline', () => {
it('should generate a valid pipeline for custom definition', () => {
const processors = generateHistoryProcessors(entityDefinition);
expect(processors).toMatchSnapshot();
});

it('should generate a valid pipeline for builtin definition', () => {
const processors = generateHistoryProcessors(builtInEntityDefinition);
expect(processors).toMatchSnapshot();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@
* 2.0.
*/

import { entityDefinition } from '../helpers/fixtures/entity_definition';
import { entityDefinition, builtInEntityDefinition } from '../helpers/fixtures';
import { generateLatestProcessors } from './generate_latest_processors';

describe('generateLatestProcessors(definition)', () => {
it('should genearte a valid pipeline', () => {
it('should generate a valid pipeline for custom definition', () => {
const processors = generateLatestProcessors(entityDefinition);
expect(processors).toMatchSnapshot();
});

it('should generate a valid pipeline for builtin definition', () => {
const processors = generateLatestProcessors(builtInEntityDefinition);
expect(processors).toMatchSnapshot();
});
});
Loading

0 comments on commit 77fb3ac

Please sign in to comment.