
๋ก ์ด ๋ชจ๋์ ์ฌ์ฉํ ์ ์๋ค.
actual๊ณผ expected์ ๊ฐ์ ๋ณด์ฌ์ฃผ๋ ์์ธ๋ฅผ ๋์ง๋ค. operator๋ ๋ ๊ฐ์ ๋ฌด์์ผ๋ก ๋น๊ตํ๋์ง ํ์ํ๋ ๊ฒ์ด๋ค. (์ญ์ฃผ, operator๋ ๊ฒฐ๊ตญ Error.captureStackTrace๋ก ๋๊ฒจ์ง๋๋ฐ ๋ฌด์จ ์ญํ ์ธ์ง ์ดํดํ ์ ์์. ํ์ง๋ง assert.js์ ์ฝ๋๋ฅผ ๋ณด๋ฉด ๋ชจ๋ ์คํธ๋ง์ด๋ค. ๋น๊ตํ๋ ๋ฐ ์ฌ์ฉํ ํจ์๋ Operator ์ด๋ฆ์)
Install with [npm]:
$ npm install -g mocha
Chai is available for both node.js and the browser using any test framework you like. There are also a number of other tools that include Chai.