Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. const should = require("should")
  2. const chai = require("chai")
  3. const index = require("../src/index")
  4. const assert = require("assert");
  5. describe("Test index", function(){
  6. it("object", function(){
  7. index.table.should.have.property("leg", 4)
  8. })
  9. it("function", function(){
  10. assert.equal(index.fib(8), 21);
  11. })
  12. it("class", function(){
  13. const t = new index.CL(5);
  14. should.equal(t.add(5), 10);
  15. })
  16. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement