Skip to content

Commit

Permalink
Fix the test adding the correct html generated by the markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcanessa committed Oct 12, 2017
1 parent 375863e commit b266b8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/markdown.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Markdown', function() {
};
markdown.render(options)
.then(function({data: html}) {
expect(html).to.be('<p>Hello world <a href="https://github.com/github/linguist/issues/1" class="issue-link js-issue-link" data-url="https://github.com/github/linguist/issues/1" data-id="1012654" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">github/linguist#1</a> <strong>cool</strong>, and <a href="https://github.com/gollum/gollum/issues/1" class="issue-link js-issue-link" data-url="https://github.com/gollum/gollum/issues/1" data-id="183433" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#1</a>!</p>'); // eslint-disable-line
expect(html).to.be('<p>Hello world <a href="https://github.com/github/linguist/issues/1" class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="1012654" data-permission-text="Issue title is private" data-url="https://github.com/github/linguist/issues/1">github/linguist#1</a> <strong>cool</strong>, and <a href="https://github.com/gollum/gollum/issues/1" class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="183433" data-permission-text="Issue title is private" data-url="https://github.com/gollum/gollum/issues/1">#1</a>!</p>'); // eslint-disable-line
done();
}).catch(done);
});
Expand Down
4 changes: 2 additions & 2 deletions test/repository.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ describe('Repository', function() {

it('should list tags on repo', function(done) {
const options = {
per_page: 30
per_page: 30 //eslint-disable-line
};

remoteRepo.listTags(options, assertSuccessful(done));
Expand Down Expand Up @@ -634,7 +634,7 @@ describe('Repository', function() {

it('should read all releases', function(done) {
const paginationOptions = {
per_page: 30
per_page: 30 //eslint-disable-line
};

remoteRepo.listReleases(paginationOptions, assertSuccessful(done, function(err, releases) {
Expand Down

0 comments on commit b266b8d

Please sign in to comment.