用於字串拆分方法的 Mocha 示例
var assert = require('assert');
describe('String', function() {
describe('#split', function() {
it('should return an array', function() {
assert(Array.isArray('a,b,c'.split(',')))
});
});
});
var assert = require('assert');
describe('String', function() {
describe('#split', function() {
it('should return an array', function() {
assert(Array.isArray('a,b,c'.split(',')))
});
});
});