fix(core): update

This commit is contained in:
2022-11-21 09:14:32 +01:00
parent d3dd03534a
commit b2a5cda468
23 changed files with 4426 additions and 27030 deletions

View File

@ -1,6 +1,6 @@
// tslint:disable-next-line:no-implicit-dependencies
import { expect, tap } from '@pushrocks/tapbundle';
import * as smarttime from '../ts/index';
import * as smarttime from '../ts/index.js';
// Test TimeStamp class
let testTimeStamp: smarttime.TimeStamp;

View File

@ -1,6 +1,6 @@
import { tap, expect } from '@pushrocks/tapbundle';
import * as smarttime from '../ts/index';
import * as smarttime from '../ts/index.js';
let testCronManager: smarttime.CronManager;

View File

@ -1,6 +1,6 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as smarttime from '../ts/index';
import * as smarttime from '../ts/index.js';
tap.test('should create a valid JavaScript Date', async () => {
const extendedDate = new smarttime.ExtendedDate(Date.now());
@ -29,6 +29,6 @@ tap.test('should create a European date string', async () => {
tap.test('should format a date', async () => {
const extendedDate = new smarttime.ExtendedDate(Date.now());
console.log(extendedDate.format('YYYY-MM-DD - hh:mm'));
})
});
tap.start();

View File

@ -1,7 +1,7 @@
// tslint:disable-next-line:no-implicit-dependencies
import { expect, tap } from '@pushrocks/tapbundle';
import { Timer } from '../ts/index';
import { Timer } from '../ts/index.js';
let testTimer: Timer;