X
X
xxxxc2018-02-14 02:14:58
Node.js
xxxxc, 2018-02-14 02:14:58

What is suite(name, callback) function in node.js?

I'm studying Ethan Brown's book - Web Development with Node & Express. So there in tests this function suite () is used. And then with the help of Mocha tests are launched.

var assert = require('chai').assert;
suite('tests', function () {
  // set of tests
});

I understand that there is a test suite in this function, but I can't find any documentation on this function, I can't google it correctly (how is that Aa?). I feel very bad. Please help me understand where it comes from.
I guess this is a mocha feature, but google it like mocha suite | mocha suite function | node js | node suite fun does not give the desired result. Finds only about describe. Well, as I understand it, you can replace this incomprehensible suite with a discribe?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2018-02-14
@xxxxc

This is probably a function of mocha, but google it like mocha suite

What is there to google if it is in the docks? :) https://mochajs.org/#tdd
Yes, there is no difference with describe.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question