fix(core): update
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import * as smartpromise from '../ts';
|
||||
import * as smartpromise from '../ts/index.js';
|
||||
|
||||
// using Deferreds
|
||||
// simple deferred;
|
||||
@@ -6,8 +6,7 @@ const done = smartpromise.defer();
|
||||
done.promise.then((stringArg) => {
|
||||
console.log(stringArg);
|
||||
});
|
||||
done.resolve('hello') // whenever you are ready
|
||||
|
||||
done.resolve('hello'); // whenever you are ready
|
||||
|
||||
// using deferreds in async functions to cater callback style apis
|
||||
const myAsyncFunction = async (): Promise<string> => {
|
||||
@@ -48,7 +47,7 @@ smartpromise
|
||||
console.log(err);
|
||||
});
|
||||
|
||||
import {tap, expect } from '@pushrocks/tapbundle';
|
||||
import { tap, expect } from '@pushrocks/tapbundle';
|
||||
|
||||
tap.test('runs through', async () => {})
|
||||
tap.start();
|
||||
tap.test('runs through', async () => {});
|
||||
tap.start();
|
||||
|
||||
Reference in New Issue
Block a user