Skip to content

Commit

Permalink
Merge pull request #228 from dart-lang/html-links-annotations
Browse files Browse the repository at this point in the history
fix unit test
  • Loading branch information
sethladd committed Feb 21, 2015
2 parents 866b301 + a04de4e commit bdae5ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ abstract class ModelElement {
var me = new ModelElement.from(
e.enclosingElement, new Library(e.library, package));
return annotationString.replaceAll(
me.name, '[${me.name}](${me.href})');
me.name, '<a href="${me.href}">${me.name}</a>');
}
return annotationString;
}).toList(growable: false);
Expand Down
2 changes: 1 addition & 1 deletion test/model_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ void main() {

test('has the right annotation', () {
expect(forAnnotation.annotations.first,
equals('[ForAnnotation](ex/ForAnnotation.html)(\'my value\')'));
equals('<a href="ex/ForAnnotation.html">ForAnnotation</a>(\'my value\')'));
});

test('methods has the right annotation', () {
Expand Down

0 comments on commit bdae5ce

Please sign in to comment.