mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-22 15:39:14 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
13
web/node_modules/unique-slug/test/index.js
generated
vendored
Normal file
13
web/node_modules/unique-slug/test/index.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
'use strict'
|
||||
var t = require('tap')
|
||||
var uniqueSlug = require('../index.js')
|
||||
|
||||
t.plan(5)
|
||||
var slugA = uniqueSlug()
|
||||
t.is(slugA.length, 8, 'random slugs are 8 chars')
|
||||
t.notEqual(slugA, uniqueSlug(), "two slugs aren't the same")
|
||||
var base = '/path/to/thingy'
|
||||
var slugB = uniqueSlug(base)
|
||||
t.is(slugB.length, 8, 'string based slugs are 8 chars')
|
||||
t.is(slugB, uniqueSlug(base), 'two string based slugs, from the same string are the same')
|
||||
t.notEqual(slugB, uniqueSlug(slugA), 'two string based slongs, from diff strings are different')
|
Loading…
Add table
Add a link
Reference in a new issue