Skip to content

Commit

Permalink
Added Test Suit
Browse files Browse the repository at this point in the history
  • Loading branch information
edurbrito committed Jul 4, 2020
1 parent 9b161c2 commit b0aa6e1
Show file tree
Hide file tree
Showing 6 changed files with 4,952 additions and 690 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@

node_modules/

tests/coverage/
30 changes: 2 additions & 28 deletions md-notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,7 @@
var inquirer = require('inquirer')
var fs = require('fs')
var path = require('path')

var questions = [
{
type: 'list',
name: 'type',
message: 'What type of note?',
choices: ['Note', 'Q&A'],
filter: function (val) {
return val.toLowerCase().replace(/\s/g, '').trim()
}
},
{
type: 'list',
name: 'theme',
message: 'What theme for the note?',
choices: ['Default'],
filter: function (val) {
return val.toLowerCase().replace(/\s/g, '').trim()
}
},
{
type: 'confirm',
name: 'directory',
message: 'Create "./images" directory?',
default: true
}
]
var questions = require('./questions').questions

inquirer
.prompt(questions)
Expand All @@ -44,7 +18,7 @@ inquirer
)

fs.copyFile(
path.join(__dirname, 'themes', answers.type + '-style.less'),
path.join(__dirname, 'themes', answers.theme, answers.type + '-style.less'),
answers.type + '-style.less',
(err) => {
if (err) throw err
Expand Down
Loading

0 comments on commit b0aa6e1

Please sign in to comment.