ivannpaz / JavascriptTestingSample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Javascript tests sampler

###Summary:

Excercise solutions for assigned homework. Includes a browser based TDD/BDD test-runner with Mocha, Chai & Sinon.JS.

###Contents:

  • js/intersect.js: array_intersect(a, b) - Intersect two arrays, removing from A all items present in B.
  • js/permute.js: permuteChildren(parent) - Given an html node, clean it up of non-element childnodes and shuffle its first level children.

###Test Runner:

Open index.html to automatically run all provided tests.

About


Languages

Language:JavaScript 98.6%Language:CSS 1.2%Language:HTML 0.2%