def test_compile_file(self):
        compiler = CoffeeScript()

        self.assertEqual(
            self.clean_javascript(compiler.compile_file("scripts/test.coffee")),
            """(function() {\n  console.log("Hello, World!");\n}).call(this);"""
        )
def test_compile_file():
    compiler = CoffeeScript()

    assert (
        clean_javascript(compiler.compile_file("scripts/test.coffee")) ==
        """(function() {\n  console.log("Hello, World!");\n}).call(this);"""
    )
    def test_compile_file(self):
        compiler = CoffeeScript()

        self.assertEqual(
            self.clean_javascript(
                compiler.compile_file("scripts/test.coffee")),
            """(function() {\n  console.log("Hello, World!");\n}).call(this);"""
        )
Example #4
0
def test_compile_file():
    compiler = CoffeeScript()

    assert (clean_javascript(
        compiler.compile_file("scripts/test.coffee")
    ) == """(function() {\n  console.log("Hello, World!");\n}).call(this);""")