Commit 5f459002 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Remove Serializer tests which no more apply to esprima.

Esprima now rejects those pieces of code as invalid JavaScript.
parent c2e69470
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -162,10 +162,6 @@ describe JsDuck::Serializer do
  end

  describe "adds parenthesis correctly on" do
    it "assignment expression" do
      test("(foo, bar) = [1, 2];")
    end

    it "conditional expression" do
      test("(foo = true) ? 1 : 2;")
    end
@@ -182,10 +178,6 @@ describe JsDuck::Serializer do
      test("!(bar || baz);")
    end

    it "update expression" do
      test("++(5 + 5);")
    end

    it "call expression" do
      test("(foo || bar)();")
    end