

def test_run_js_to_coffee_on_js_file_populates_an_error_file_when_given_invalid_javascript(self):
    contents = ['va = oiuewf{}']
    sut.write_buffer_contents_to_file(JS_FILE, self)
    sut.run_js_to_coffee_on_js_file()
    self.assertTrue((os.stat(ERROR_LOG)[stat.ST_SIZE] > 0))

dataset/ETHPy150Open JarrodCTaylor/vim-js2coffee/tests/vim_js2coffee_tests.py VimJS2CoffeeTests.test_run_js_to_coffee_on_js_file_populates_an_error_file_when_given_invalid_javascript/VarMisuse@22/57 `contents`->`self`