Skip to content

Commit

Permalink
remove unecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethbruskiewicz committed Nov 12, 2024
1 parent 84cd3ae commit e5b859b
Showing 1 changed file with 2 additions and 37 deletions.
39 changes: 2 additions & 37 deletions tests/translations.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
transformLangFirstSpec,
transformStructFirstSpec,
} from ' ../lib/utils/i18n'; // Adjust the path
} from '@/lib/utils/i18n'; // Adjust the path

describe('transformLangFirstSpec', () => {
it('should transform a source object into the correct format', () => {
Expand Down Expand Up @@ -34,38 +33,4 @@ describe('transformLangFirstSpec', () => {
};
expect(transformLangFirstSpec(source)).toEqual(expected);
});
});

describe('transformStructFirstSpec', () => {
it('should transform an initialObject into the correct format', () => {
const initialObject = {
nav: {
header: {
greeting: {
en: 'hello',
fr: 'bonjour',
},
},
},
};

const expected = {
en: {
nav: {
header: {
greeting: 'hello',
},
},
},
fr: {
nav: {
header: {
greeting: 'bonjour',
},
},
},
};

expect(transformStructFirstSpec(initialObject)).toEqual(expected);
});
});
});

0 comments on commit e5b859b

Please sign in to comment.