Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Commit

Permalink
[pre-γ] Unit tests fix | First Pregamma commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Radosław Kuświk committed Jan 11, 2019
1 parent 1dbe5f4 commit 236083f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Powerful Text Editor <small>| _need to come up with better lineup ;)_</small>

> **DONE** means final code & tests are written. Everything is green and ready to deploy.
Current development stage: **Beta [β]**
Current development stage: **Pregamma [pre-γ]**

**Alpha** Stage [α]:

Expand Down
2 changes: 1 addition & 1 deletion src/views/Sidebar/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default {
date.getSeconds().toString().padStart(2, '0'),
].join('_');
const text = document.getElementById('text-editor').innerText;
this.downloadFile(text, filename, 'text/plain');
this.downloadFile(text, `${filename}.txt`, 'text/plain');
},
downloadFile,
togglePanel(name) {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/views/Sidebar/Sidebar.globs.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const PANEL_NAME = 'test-panel';

const TRANSLATE_TEXT = 'translate-text';
const FAKE_TEXT = 'Fake text';
const FILENAME = 'writr_2018_11_21__22_34.txt';
const FILENAME = 'writr_2018_11_21_22_34_13.txt';
const FILETYPE = 'text/plain';

const THEME_NAME = 'dark';
Expand Down

0 comments on commit 236083f

Please sign in to comment.