Skip to content

Commit

Permalink
changed test file
Browse files Browse the repository at this point in the history
  • Loading branch information
skmanoj322 committed Mar 14, 2024
1 parent 2e65e81 commit ddcf911
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,20 @@ describe('@mui/codemod', () => {
describe('deprecations', () => {
describe('badge-props', () => {
it('transforms props as needed', () => {
const actual = transform({ source: read('./test-cases/actual.js') }, { jscodeshift }, {});
const actual = transform(
{ source: read('./test-cases/actual.js') },
{ jscodeshift },
{ printOptions: { trailingComma: true } },
);

const expected = read('./test-cases/excepted.js');
const expected = read('./test-cases/expected.js');
expect(actual).to.equal(expected, 'The transformed version should be correct');
});

it('should be idempotent', () => {
const actual = transform({ source: read('./test-cases/actual.js') }, { jscodeshift }, {});

const excepted = read('./test-cases/excepted.js');
const excepted = read('./test-cases/expected.js');
expect(actual).to.equal(excepted, 'The transformed version should be correct');
});
});
Expand Down

0 comments on commit ddcf911

Please sign in to comment.