Skip to content

Commit 39d06a3

Browse files
committed
Fix test
1 parent ebe95de commit 39d06a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils/__tests__/normalizeClassDefinition-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
*/
88

9-
import { statement } from '../../../tests/utils';
9+
import { statement, parse } from '../../../tests/utils';
1010
import normalizeClassDefinition from '../normalizeClassDefinition';
1111

1212
describe('normalizeClassDefinition', () => {
@@ -70,11 +70,11 @@ describe('normalizeClassDefinition', () => {
7070
expect(classProperty.value.value).toBe(42);
7171
expect(classProperty.static).toBe(true);
7272

73-
classDefinition = statement(`
73+
classDefinition = parse(`
7474
var Foo;
7575
Foo = class {};
7676
Foo.propTypes = 42;
77-
`).get('expression', 'right');
77+
`).get('body', 1, 'expression', 'right');
7878

7979
normalizeClassDefinition(classDefinition);
8080
({

0 commit comments

Comments
 (0)