Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
32
Frontend-Learner/node_modules/speakingurl/test/test-maintaincase.js
generated
vendored
Normal file
32
Frontend-Learner/node_modules/speakingurl/test/test-maintaincase.js
generated
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
/* global describe,it */
|
||||
|
||||
var getSlug = require('../lib/speakingurl');
|
||||
|
||||
describe('getSlug maintainCase', function () {
|
||||
'use strict';
|
||||
|
||||
it('should maintain case characters', function (done) {
|
||||
|
||||
getSlug('Foo, Bar Baz', {
|
||||
maintainCase: true
|
||||
})
|
||||
.should.eql('Foo-Bar-Baz');
|
||||
|
||||
getSlug('Foo- Bar Baz', {
|
||||
maintainCase: true
|
||||
})
|
||||
.should.eql('Foo-Bar-Baz');
|
||||
|
||||
getSlug('Foo] Bar Baz', {
|
||||
maintainCase: true
|
||||
})
|
||||
.should.eql('Foo-Bar-Baz');
|
||||
|
||||
getSlug('Foo > Bar ♥ Baz', {
|
||||
maintainCase: true
|
||||
})
|
||||
.should.eql('Foo-greater-than-Bar-love-Baz');
|
||||
|
||||
done();
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue