UNPKG

text-utilities

Version:
12 lines (10 loc) 329 B
'use strict'; var expect = require('chai').expect; var assert = require('assert'); var index = require('../dist/index.js'); describe('anyForPi tests', () => { it("should return PI when nothing was passed", () => { let x = index.anyForPi(); assert(Math.trunc(x * 10) === 31, "first digit check"); }); });