

def test_works_with_nested_quotes(self):
    contents = ['var example = function() {\n', '    console.log("This is a \'different\' example");\n', '}']
    sut.get_coffee_from_js_buffer_contents(contents)
    expected_result = ['example = ->\n', '  console.log "This is a \'different\' example"\n', '  return\n']
    actual_results = read_file_to_list(COFFEE_FILE)
    self.assertEqual(actual_results, expected_result)

dataset/ETHPy150Open JarrodCTaylor/vim-js2coffee/tests/vim_js2coffee_tests.py VimJS2CoffeeTests.test_works_with_nested_quotes/original