From d9cec6010008040cc2cbbe43be1d16ebbad44e39 Mon Sep 17 00:00:00 2001 From: Ibrahim Mkusa Date: Mon, 19 Jun 2023 12:19:29 -0400 Subject: ex4.3 implement jest tests --- part4/blog/tests/list_helper.test.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 part4/blog/tests/list_helper.test.js (limited to 'part4/blog/tests') 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) +}) -- cgit v1.2.3