Skip to content

Commit cac456b

Browse files
committed
fix: fixed tests
1 parent 2264008 commit cac456b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { describe, it, expect } from 'vitest';
2-
import { FileType, InMemoryFile } from './entities.js';
3-
import { YamlSourceMapAdapter, YamlSourceMapBTree } from './source-maps.js';
2+
import { FileType, InMemoryFile } from '../entities.js';
43
import SourceMap from 'js-yaml-source-map';
54
import * as yaml from 'js-yaml';
65
import { exec } from 'child_process';
6+
import { YamlSourceMapAdapter, YamlSourceMapBTree } from './source-map.js';
77

88
describe('Yaml source map tests', () => {
99
it('Can generate the correct yaml endPointers', () => {

src/utils/file-modification-calculator.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ describe('File modification calculator tests', () => {
367367
' },\n' +
368368
' {\n' +
369369
' "type": "resource1",\n' +
370-
' "param2": ["a", "b", "c", "d"],\n' +
370+
' "param2": ["a", "b", "c", "d"]\n' +
371371
' }\n' +
372372
']')
373373
console.log(result)
@@ -421,11 +421,11 @@ describe('File modification calculator tests', () => {
421421
' },\n' +
422422
' {\n' +
423423
' "type": "resource1",\n' +
424-
' "param2": ["a", "b", "c", "d"],\n' +
424+
' "param2": ["a", "b", "c", "d"]\n' +
425425
' },\n' +
426426
' {\n' +
427427
' "type": "resource2",\n' +
428-
' "param2": ["a", "b", "c", "d"],\n' +
428+
' "param2": ["a", "b", "c", "d"]\n' +
429429
' }\n' +
430430
']',)
431431
console.log(result)

test/orchestrator/import/import.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ describe('Import orchestrator tests', () => {
184184
expect(displayFileModifications).toHaveBeenCalledOnce();
185185
expect(promptConfirmationSpy).toHaveBeenCalledOnce();
186186

187-
const fileWritten = fs.readFileSync('/codify-imports/import.codify.json', 'utf8') as string;
187+
const fileWritten = fs.readFileSync('/codify-imports/import.codify.jsonc', 'utf8') as string;
188188
console.log(fileWritten);
189189

190190
expect(JSON.parse(fileWritten)).toMatchObject([

0 commit comments

Comments
 (0)