Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed May 16, 2022
1 parent fa214d0 commit 5493bba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/babel-types/test/cloning.js
Expand Up @@ -153,7 +153,7 @@ describe("cloneNode", function () {
expect(cloned.declarations[0].id.trailingComments[0].loc).toBe(null);
});

it("should same code after deep cloning", function () {
it("should generate same code after deep cloning", function () {
let code = `//test1
/*test2*/var/*test3*/ a = 1/*test4*/;//test5
//test6
Expand All @@ -170,6 +170,6 @@ describe("cloneNode", function () {
const newCode = new CodeGenerator(ast, { retainLines: true }).generate()
.code;

expect(code).toBe(newCode);
expect(newCode).toBe(code);
});
});

0 comments on commit 5493bba

Please sign in to comment.