Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let createList = require('../second.js').list
- let assert = require('chai').assert
- describe('Add delete list functionality tests', function(){
- let list
- beforeEach(function(){
- list = createList
- })
- describe('add item tests',function(){
- it('it should initialize the list',function(){
- list.add(1)
- assert(list.toString()==='1','dosent initialize a list')
- })
- it('it should initialize and add multiple elems to the list',function(){
- list.add(1)
- list.add(2)
- list.add('pesho')
- assert.equal(list.toString(),'1, 2, pesho','dosent initialize a list')
- })
- })
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement