aboutsummaryrefslogtreecommitdiff
path: root/part4/blog/tests/list_helper.test.js
diff options
context:
space:
mode:
authorIbrahim Mkusa <ibrahimmkusa@gmail.com>2023-06-19 12:19:29 -0400
committerIbrahim Mkusa <ibrahimmkusa@gmail.com>2023-06-19 12:19:29 -0400
commitd9cec6010008040cc2cbbe43be1d16ebbad44e39 (patch)
tree6233e2d0ba2bc4ec65ade7aa8e1a92e10d82943e /part4/blog/tests/list_helper.test.js
parent81c9e17aebc95f0939c5b636ca64af9d47dfc992 (diff)
ex4.3 implement jest tests
Diffstat (limited to 'part4/blog/tests/list_helper.test.js')
-rw-r--r--part4/blog/tests/list_helper.test.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/part4/blog/tests/list_helper.test.js b/part4/blog/tests/list_helper.test.js
new file mode 100644
index 0000000..e10f374
--- /dev/null
+++ b/part4/blog/tests/list_helper.test.js
@@ -0,0 +1,8 @@
+const listHelper = require('../utils/list_helper.js')
+
+test('dummy returns one', () => {
+ const blogs = []
+
+ const result = listHelper.dummy(blogs)
+ expect(result).toBe(1)
+})