Forked from hermes-frontend, stripped openclaw/bun specifics: - Auth tokens: openclaw_session -> nyx_session - Vite proxy: localhost:3003 -> localhost:8000 (assay) - Prod WS: wss://assay.loop42.de/ws - Workspace paths: removed openclaw-specific paths - Added missing deps: @heroicons/vue, overlayscrollbars-vue - Branding: title -> nyx Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
32 lines
749 B
JavaScript
32 lines
749 B
JavaScript
/* 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();
|
|
});
|
|
}); |