Base UI
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
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
This commit is contained in:
+33
@@ -0,0 +1,33 @@
|
||||
/* 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();
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user