def METHOD_NAME(self, path: str, expected=None) -> None:
    """Run a javascript file.
    Args:
        path: The path to the JS file, relative to the qutebrowser package.
        expected: The value expected return from the javascript execution
    """
    base_path = pathlib.Path(qutebrowser.__file__).resolve().parent
    source = (base_path / path).read_text(encoding='utf-8')
    self.run(source, expected)