summary refs log tree commit diff stats
path: root/javascript/two-fer
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2021-08-25 22:59:37 +0530
committerAndinus <andinus@nand.sh>2021-08-25 22:59:37 +0530
commit16f7aba7ef1b48d940bca66adb59d10527b885e8 (patch)
treedf25e9a05b3d67922ae8c283b0aacb1d06484ef1 /javascript/two-fer
parent00ca21200f8ab83e2614c7607e8617966f36ea50 (diff)
downloadexercism-16f7aba7ef1b48d940bca66adb59d10527b885e8.tar.gz
JS: Use template literals in two-fer
Diffstat (limited to 'javascript/two-fer')
-rw-r--r--javascript/two-fer/two-fer.js2
-rw-r--r--javascript/two-fer/two-fer.spec.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/javascript/two-fer/two-fer.js b/javascript/two-fer/two-fer.js
index 2349ad7..cb896a3 100644
--- a/javascript/two-fer/two-fer.js
+++ b/javascript/two-fer/two-fer.js
@@ -1,3 +1,3 @@
 export const twoFer = (name = "you") => {
-    return "One for " + name + ", one for me.";
+    return `One for ${name}, one for me.`
 };
diff --git a/javascript/two-fer/two-fer.spec.js b/javascript/two-fer/two-fer.spec.js
index 1c39a36..9a0cf53 100644
--- a/javascript/two-fer/two-fer.spec.js
+++ b/javascript/two-fer/two-fer.spec.js
@@ -5,11 +5,11 @@ describe('twoFer()', () => {
     expect(twoFer()).toEqual('One for you, one for me.');
   });
 
-  xtest('a name given', () => {
+  test('a name given', () => {
     expect(twoFer('Alice')).toEqual('One for Alice, one for me.');
   });
 
-  xtest('another name given', () => {
+  test('another name given', () => {
     expect(twoFer('Bob')).toEqual('One for Bob, one for me.');
   });
 });