Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const should = require("should")
- const chai = require("chai")
- const index = require("../src/index")
- const assert = require("assert");
- describe("Test index", function(){
- it("object", function(){
- index.table.should.have.property("leg", 4)
- })
- it("function", function(){
- assert.equal(index.fib(8), 21);
- })
- it("class", function(){
- const t = new index.CL(5);
- should.equal(t.add(5), 10);
- })
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement