From 19b8d8c71cd66ec2ffe75190c230ebc11db3f786 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Sat, 10 Feb 2018 13:05:42 -0500 Subject: [PATCH] Adding download PNG link For #46 --- spec/regexper_spec.js | 5 +++-- src/index.hbs | 7 +++++-- src/js/regexper.js | 38 ++++++++++++++++++++++++++++++++------ src/sass/main.scss | 9 +++++++-- 4 files changed, 47 insertions(+), 12 deletions(-) diff --git a/spec/regexper_spec.js b/spec/regexper_spec.js index 35744d0..94c63fe 100644 --- a/spec/regexper_spec.js +++ b/spec/regexper_spec.js @@ -12,7 +12,8 @@ describe('regexper.js', function() { '', '', '', '
', @@ -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'); }); }); diff --git a/src/index.hbs b/src/index.hbs index d4266d8..21e317f 100644 --- a/src/index.hbs +++ b/src/index.hbs @@ -6,8 +6,11 @@