Skip to content

Commit bde3ba9

Browse files
committed
[Tests] fix a test
1 parent e5555d1 commit bde3ba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

__tests__/src/getPropLiteralValue-babelparser-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ describe('getLiteralPropValue', () => {
547547
});
548548

549549
it('should work with a this.props value', () => {
550-
const prop = extractProp('<a href={this.props.href!}>Download</a>');
550+
const prop = extractProp('<a href={this.props.href!}>Download</a>', 'href');
551551
const expected = null;
552552
const actual = getLiteralPropValue(prop);
553553
assert.equal(actual, expected);

0 commit comments

Comments
 (0)