Skip to content

Commit

Permalink
update test with assert and moved it into test folder to work with Mocha
Browse files Browse the repository at this point in the history
  • Loading branch information
uwaseem committed Oct 18, 2020
1 parent ca0fa41 commit 8e70e08
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -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')
})
})
})

0 comments on commit 8e70e08

Please sign in to comment.