Exemplo n.º 1
0
def test_serialize_var_declaration_with_immediate_assignment():
    statement = js.var("x", js.ref("y"))
    assert_equal("var x = y;", _dumps(statement))
Exemplo n.º 2
0
def test_serialize_var_declaration():
    statement = js.var("x")
    assert_equal("var x;", _dumps(statement))