zyb 0c0b5d869c 加入了node_modules
添加了新的功能项
2025-05-13 21:23:41 +08:00

16 lines
375 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var getSlug = require('../lib/speakingurl');
describe('getSlug translate persian letters/numbers', function () {
'use strict';
it('should be ', function (done) {
getSlug('گ چ پ ژ ک ی ۰ ۱ ۲ ۳ ۴ ۵ ۶ ۷ ۸ ۹', {
lang: 'fa'
})
.should.eql('g-ch-p-zh-k-y-0-1-2-3-4-5-6-7-8-9');
done();
});
});