feat(package): modernize package configuration, tooling, and documentation
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { expect, tap } from '@git.zone/tstest/tapbundle';
|
||||
import * as smartformat from '../ts/index.js';
|
||||
|
||||
tap.test('should format bytes', async () => {
|
||||
expect(smartformat.prettyBytes(1337)).toEqual('1.34 kB');
|
||||
});
|
||||
|
||||
tap.test('should format milliseconds', async () => {
|
||||
expect(smartformat.prettyMs(1337)).toEqual('1.3s');
|
||||
});
|
||||
|
||||
export default tap.start();
|
||||
@@ -1,8 +0,0 @@
|
||||
import { expect, expectAsync, tap } from '@push.rocks/tapbundle';
|
||||
import * as smartformat from '../ts/index.js'
|
||||
|
||||
tap.test('first test', async () => {
|
||||
console.log(smartformat)
|
||||
})
|
||||
|
||||
tap.start()
|
||||
Reference in New Issue
Block a user