Files
manja_ui_dev/node_modules/speakingurl/test/test-hungarian.js
T
sean d26db06f74
NPM Installation / build (16.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (16.x, windows-latest) (push) Has been cancelled
NPM Installation / build (17.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (17.x, windows-latest) (push) Has been cancelled
NPM Installation / build (18.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (18.x, windows-latest) (push) Has been cancelled
all data hide
2026-06-25 09:44:52 +07:00

33 lines
859 B
JavaScript

/* global describe,it */
var getSlug = require('../lib/speakingurl');
describe('getSlug translate hungarian letters', function () {
'use strict';
it('umlaut should be single letter transliteration', function (done) {
getSlug('AÁEÉIÍOÓÖŐUÚÜŰ', {
lang: 'hu'
})
.should.eql('aaeeiioooouuuu');
getSlug('aáeéiíoóöőuúüű', {
lang: 'hu'
})
.should.eql('aaeeiioooouuuu');
getSlug('AÁEÉIÍOÓÖŐUÚÜŰ AÁEÉIÍOÓÖŐUÚÜŰ', {
lang: 'hu'
})
.should.eql('aaeeiioooouuuu-aaeeiioooouuuu');
getSlug('aáeéiíoóöőuúüű aáeéiíoóöőuúüű', {
lang: 'hu'
})
.should.eql('aaeeiioooouuuu-aaeeiioooouuuu');
done();
});
});