您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

helpers.test.js 325 B

2 年前
12345678910
  1. const assert = require('assert');
  2. const helpers = require('../helpers');
  3. describe('utils.helpers', () => {
  4. it('should return a value fixed upto 2 decimals', () => {
  5. assert.equal(helpers.floatTwo(1.234), 1.23);
  6. assert.equal(helpers.floatTwo(1.456), 1.46);
  7. assert.equal(helpers.floatTwo(1), 1.00);
  8. });
  9. });