<reponame>linven/needsmoredojo<filename>tests/com/chrisfolger/needsmoredojo/testutil/MockJSExpressionStatement.java
package com.chrisfolger.needsmoredojo.testutil;

import com.intellij.lang.ASTNode;
import com.intellij.lang.javascript.psi.JSExpression;
import com.intellij.lang.javascript.psi.impl.JSExpressionStatementImpl;
import com.intellij.psi.tree.IElementType;

import static org.mockito.Mockito.mock;

public class MockJSExpressionStatement extends JSExpressionStatementImpl
{
    private JSExpression expression;

    public MockJSExpressionStatement(JSExpression expression) {
        super(mock(IElementType.class));

        this.expression = expression;
    }

    @Override
    public JSExpression getExpression()
    {
        return expression;
    }
}
