From 8e70e0841c17bdd8269b4606cba8125d36ee22d1 Mon Sep 17 00:00:00 2001 From: uwaseem Date: Sun, 18 Oct 2020 15:58:22 +0200 Subject: [PATCH] update test with assert and moved it into test folder to work with Mocha --- test/test.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/test.js diff --git a/test/test.js b/test/test.js new file mode 100644 index 0000000..6f62b5b --- /dev/null +++ b/test/test.js @@ -0,0 +1,16 @@ +const assert = require('assert') +const dessertGenerator = require('../index') + +describe('dessertGenerator', function() { + describe('generateDessert', function() { + it('should return a dessert which is a string', function() { + assert.strictEqual(typeof dessertGenerator.generateDessert(), 'string') + }) + }) + + describe('generateYummyDessert', function() { + it('should return a dessert and adjective which are both string', function() { + assert.strictEqual(typeof dessertGenerator.generateDessert(), 'string') + }) + }) +})