Skip to content

Commit

Permalink
Change to more appropriate assertion related to ownPropertyDescriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
devenbansod committed Apr 7, 2018
1 parent 34f55d1 commit b137105
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/babel-generator/test/index.js
Expand Up @@ -250,9 +250,13 @@ describe("generation", function() {
});

expect(Array.isArray(generated.rawMappings)).toBe(true);

expect(
Object.getOwnPropertyDescriptor(generated, "map"),
).not.toHaveProperty("value");

expect(generated).toHaveProperty("map");
expect(typeof generated.map).toBe("object");
expect(generated.map).not.toHaveProperty("value");
});
});

Expand Down

0 comments on commit b137105

Please sign in to comment.