Skip to content

Commit

Permalink
test(util): fix tests conflict after merging with the main
Browse files Browse the repository at this point in the history
  • Loading branch information
manushak committed Jul 10, 2024
1 parent 3474745 commit 179238c
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/__tests__/if-csv/util/helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ const {ManifestValidationError} = ERRORS;
import {
tree,
context,
outputs,
aggregated,
aggregation,
} from '../../../__mocks__/builtins/export-csv';
} from '../../../__mocks__/builtins/export-yaml';

jest.mock('fs/promises', () => {
const originalModule =
Expand Down Expand Up @@ -45,7 +44,6 @@ describe('if-csv/util/helpers: ', () => {
4000.0000020256216,
],
];
const reformedContext = Object.assign({}, context, {outputs});
const reformedTree = Object.assign({}, tree, {
children: {
...tree.children,
Expand All @@ -62,7 +60,7 @@ describe('if-csv/util/helpers: ', () => {

const options: CsvOptions = {
tree: reformedTree,
context: reformedContext,
context,
outputPath,
params: 'carbon',
};
Expand Down Expand Up @@ -142,12 +140,7 @@ describe('if-csv/util/helpers: ', () => {
],
];

const reformedContext = Object.assign(
{},
context,
{outputs},
{aggregation}
);
const reformedContext = Object.assign({}, context, {aggregation});
const reformedTree = Object.assign({}, tree, {
children: {
...tree.children,
Expand Down Expand Up @@ -221,10 +214,9 @@ describe('if-csv/util/helpers: ', () => {
],
];

const reformedContext = Object.assign({}, context, {outputs});
const options: CsvOptions = {
tree,
context: reformedContext,
context,
outputPath,
params: 'carbon',
};
Expand Down

0 comments on commit 179238c

Please sign in to comment.