refactor method names
This commit is contained in:
11
test/test.ts
11
test/test.ts
@ -2,17 +2,22 @@ import { expect, tap } from 'tapbundle'
|
||||
import * as smartunique from '../dist/index'
|
||||
|
||||
tap.test('should create shortid', async () => {
|
||||
let result = smartunique.getShortId()
|
||||
let result = smartunique.shortId()
|
||||
console.log(result)
|
||||
})
|
||||
|
||||
tap.test('should create uuidv4', async () => {
|
||||
let result = smartunique.getUuidv4()
|
||||
let result = smartunique.uuid4()
|
||||
console.log(result)
|
||||
})
|
||||
|
||||
tap.test('should create uuidv5', async () => {
|
||||
let result = smartunique.getUuidv5('sometext')
|
||||
let result = smartunique.uuid5('sometext')
|
||||
console.log(result)
|
||||
})
|
||||
|
||||
tap.test('should create uuidv5 within namespace', async () => {
|
||||
let result = smartunique.uuid5('sometext', smartunique.uuid4())
|
||||
console.log(result)
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user