Commit 9480dd5b authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Remove old anonymous function test.

Esprima parser now behaves slightly differently and it's tested for it
in ast_methods_spec.rb.  Doesn't really matter for the parser to behave
exactly the same on this corner case - the test was previously there to
mainly check that the parser doesn't crash.
parent 32178430
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -144,20 +144,6 @@ describe JsDuck::Aggregator do
    it_should_behave_like "method documentation"
  end

  describe "anonymous function" do
    before do
      @doc = parse("( /** Some function */ function() {} )")[0]
    end

    it "detects method" do
      @doc[:tagname].should == :method
    end

    it "detects empty method name" do
      @doc[:name].should == ""
    end
  end

  describe "doc-comment followed by 'function'" do
    before do
      @doc = parse("/** Some function */ 'function';")[0]