Advertisement
xapu

Untitled

Jul 20th, 2017
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. let createList = require('../second.js').list
  2. let assert = require('chai').assert
  3.  
  4.  
  5. describe('Add delete list functionality tests', function(){
  6.  
  7. let list
  8.  
  9. beforeEach(function(){
  10. list = createList
  11. })
  12. describe('add item tests',function(){
  13. it('it should initialize the list',function(){
  14. list.add(1)
  15. assert(list.toString()==='1','dosent initialize a list')
  16. })
  17.  
  18. it('it should initialize and add multiple elems to the list',function(){
  19. list.add(1)
  20. list.add(2)
  21. list.add('pesho')
  22. assert.equal(list.toString(),'1, 2, pesho','dosent initialize a list')
  23. })
  24. })
  25. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement