Skip to content

Commit

Permalink
Update packages/babel-traverse/test/path/index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
  • Loading branch information
danez and merceyz committed Nov 9, 2021
1 parent a9e843a commit 8844447
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/babel-traverse/test/path/index.js
Expand Up @@ -49,13 +49,13 @@ describe("NodePath", () => {
});

describe("hasNode", () => {
it("returns true if node is null", () => {
it("returns false if node is null", () => {
const path = new NodePath({}, {});

expect(path.hasNode()).toBe(false);
});

it("returns false if node is not null", () => {
it("returns true if node is not null", () => {
const path = new NodePath({}, {});
path.node = {};

Expand Down

0 comments on commit 8844447

Please sign in to comment.