BREAKING CHANGE(scope): update scope
This commit is contained in:
30
test/test.ts
30
test/test.ts
@ -1,24 +1,24 @@
|
||||
import { expect, tap } from 'tapbundle'
|
||||
import * as smartunique from '../dist/index'
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import * as smartunique from '../ts/index';
|
||||
|
||||
tap.test('should create shortid', async () => {
|
||||
let result = smartunique.shortId()
|
||||
console.log(result)
|
||||
})
|
||||
let result = smartunique.shortId();
|
||||
console.log(result);
|
||||
});
|
||||
|
||||
tap.test('should create uuidv4', async () => {
|
||||
let result = smartunique.uuid4()
|
||||
console.log(result)
|
||||
})
|
||||
let result = smartunique.uuid4();
|
||||
console.log(result);
|
||||
});
|
||||
|
||||
tap.test('should create uuidv5', async () => {
|
||||
let result = smartunique.uuid5('sometext')
|
||||
console.log(result)
|
||||
})
|
||||
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)
|
||||
})
|
||||
let result = smartunique.uuid5('sometext', smartunique.uuid4());
|
||||
console.log(result);
|
||||
});
|
||||
|
||||
tap.start()
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user