文件操作 - test-maintaincase.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/speakingurl/test/test-maintaincase.js
编辑文件内容
/* 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(); }); });
修改文件时间
将文件时间修改为当前时间的前一年
删除文件