Adding download PNG link

For #46
This commit is contained in:
Jeff Avallone
2018-02-10 13:05:42 -05:00
parent b4ea423221
commit 19b8d8c71c
4 changed files with 47 additions and 12 deletions
+3 -2
View File
@@ -12,7 +12,8 @@ describe('regexper.js', function() {
'<input type="text" id="regexp-input">',
'<ul class="example">',
'<ul><a href="#" data-action="permalink"></a></ul>',
'<ul><a href="#" data-action="download"></a></ul>',
'<ul><a href="#" data-action="download-svg"></a></ul>',
'<ul><a href="#" data-action="download-png"></a></ul>',
'</ul>',
'</form>',
'<div id="error"></div>',
@@ -312,7 +313,7 @@ describe('regexper.js', function() {
it('sets the download link href', function() {
this.regexper.updateLinks();
expect(this.regexper.download.href).toEqual('http://example.com/blob');
expect(this.regexper.downloadSvg.href).toEqual('http://example.com/blob');
});
});