Commit 58828fe4 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Auto-generate docs from alias.* enums.

parent 62218604
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ module JsDuck
            :private => owner[:private],
            :files => cls[:files],
            :owner => cls[:name],
            :doc => "",
            :doc => "Alias for {@link #{owner[:name]}}.",
          }
        end
      end
+3 −0
Original line number Diff line number Diff line
@@ -204,6 +204,9 @@ describe JsDuck::Aggregator do
      props.find_all {|p| p[:private] }.map {|p| p[:name] }.should == ["textarea"]
    end

    it "lists class name in enum property docs" do
      props.find_all {|p| p[:name] == 'form' }[0][:doc].should == "Alias for {@link Form}."
    end
  end

end