Skip to content

Commit

Permalink
Merge pull request #1060 from TheRenegadeCoder/javascript-testing
Browse files Browse the repository at this point in the history
Added JavaScript Testing
  • Loading branch information
jrg94 authored Mar 29, 2019
2 parents 3fecd99 + e760227 commit 9829eb8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
14 changes: 1 addition & 13 deletions archive/j/javascript/reverse-string.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
const readline = require('readline');

const reverse = s => s.split('').reverse().join('');

const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});

const question = 'Enter a String: ';

rl.question(question, (answer) => {
console.log(reverse(answer));
rl.close();
});
console.log(reverse(process.argv[2]));
8 changes: 8 additions & 0 deletions archive/j/javascript/testinfo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
folder:
extension: ".js"
naming: "hyphen"

container:
image: "node"
tag: "11-slim"
cmd: "node {{ source.name }}{{ source.extension }}"

0 comments on commit 9829eb8

Please sign in to comment.