���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
.trash
/
node_modules.1
/
speakingurl
/
test
/
Viewing: test-titlecase.js
/* global describe,it */ var getSlug = require('../lib/speakingurl'); describe('getSlug titleCase', function () { 'use strict'; it('should title-case the characters', function (done) { getSlug('This is big foo', { titleCase: true }) .should.eql('This-Is-Big-Foo'); getSlug('This is Big foo', { titleCase: true }) .should.eql('This-Is-Big-Foo'); getSlug('Don\'t drink and drive', { titleCase: true }) .should.eql('Don-t-Drink-And-Drive'); done(); }); it('should title-case the characters with custom array', function (done) { getSlug('This is yet foo and bar', { titleCase: ['and', 'yet'] }) .should.eql('This-Is-yet-Foo-and-Bar'); getSlug('This is a foo and an angry bird', { titleCase: ['a', 'an', 'and'] }) .should.eql('This-Is-a-Foo-and-an-Angry-Bird'); getSlug('This is a foo and an angry bird show', { titleCase: ['a'] }) .should.eql('This-Is-a-Foo-And-An-Angry-Bird-Show'); getSlug('Don\'t drink and drive', { titleCase: ['and'] }) .should.eql('Don-t-Drink-and-Drive'); getSlug('Don\'t drink and drive', { titleCase: {} }) .should.eql('Don-t-Drink-And-Drive'); getSlug('Don\'t drink and drive', { titleCase: { 'drink': 'drive' } }) .should.eql('Don-t-Drink-And-Drive'); getSlug('Don\'t drink and drive', { titleCase: 42 }) .should.eql('Don-t-Drink-And-Drive'); done(); }); });
Coded With 💗 by
0x6ick Mod By V1rus_Alfa